我需要使用knife
创建一个数据包。
我在knife.rb
文件中设置了这一行:
knife[:editor] = 'C:\Program Files\Sublime Text 3\sublime_text.exe'
这是我的knife.rb
内容文件:
knife[:editor] = 'C:\Program Files\Sublime Text 3\sublime_text.exe'
current_dir = File.dirname(__FILE__)
log_level :info
log_location STDOUT
node_name "living"
client_key "#{current_dir}/cert.pem"
chef_server_url "https://api.chef.io/organizations/company"
cookbook_path ["#{current_dir}/../cookbooks"]
但是,当我执行knife data bag create aws main
时,我收到此消息:
Data bag aws already exists
ERROR: RuntimeError: Please set EDITOR environment variable
有什么想法吗?
答案 0 :(得分:0)
您可能需要<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<div class="class1">
<table>
<tbody>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
</tr>
<tr>
<td>7</td>
<td>8</td>
<td>9</td>
<td>10</td>
<td>11</td>
<td>12</td>
</tr>
</tbody>
</table>
</div>
<script>
$( document ).ready(function() {
var var1 = 2
var element = $('td').filter(function() {
var holidayText = $(this).contents()[0].textContent.trim();
return parseInt(holidayText, 10) == var1;
});
var cell_width = element.width();
var2 = 3;
var width = var2*cell_width;
add_html = element.append('</br><span class="spanclass" style="width: '+width+'px; position: absolute"></span>');
});
</script>
,即纠正反斜杠转义并添加“等待模式”。