knife-preflight 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +1 -1
  2. data/lib/chef/knife/preflight.rb +1 -1
  3. 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 nodes with the cookbook in their expanded run_list
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.
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-preflight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: