knife-preflight 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +1 -1
- data/lib/chef/knife/preflight.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -22,7 +22,7 @@ Searches the expanded run_lists of all nodes along with the run_list of all role
|
|
22
22
|
## What it does
|
23
23
|
|
24
24
|
knife preflight apache2::default
|
25
|
-
will return a list of all nodes containing this cookbook in their expanded run_list followed by all
|
25
|
+
will return a list of all nodes containing this cookbook in their expanded run_list followed by all roles with the cookbook in their expanded run_list. It will warn if any nodes are in an environment which does not contain a version constraint for the cookbook being searched for.
|
26
26
|
|
27
27
|
## Notes
|
28
28
|
This will currently only search for cookbooks. It won't work if you specify a role on the command line because I've tried to avoid duplication of functionality which knife makes obvious.
|
data/lib/chef/knife/preflight.rb
CHANGED
@@ -87,7 +87,7 @@ module KnifePreflight
|
|
87
87
|
q_nodes.search('node', query_nodes, config[:sort], start, rows) do |node_item|
|
88
88
|
formatted_item_node = format_for_display(node_item)
|
89
89
|
if formatted_item_node.respond_to?(:has_key?) && !formatted_item_node.has_key?('id')
|
90
|
-
formatted_item_node['id'] = node_item.has_key?('id') ? node_item['id'] : node_item.name
|
90
|
+
formatted_item_node.normal['id'] = node_item.has_key?('id') ? node_item['id'] : node_item.name
|
91
91
|
end
|
92
92
|
result_items_nodes << formatted_item_node
|
93
93
|
result_count_nodes += 1
|