Permalink
Browse files

xapi guest list : I don't want to return nil

  • Loading branch information...
1 parent 8f0e821 commit c6eee8d4989ac8f803848f1e0a7bfba3f5a9eb6c @seungjin committed Apr 7, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/chef/knife/xapi_guest_list.rb
@@ -33,8 +33,7 @@ def run
vms = xapi.VM.get_all
vms.each do |vm|
record = xapi.VM.get_record(vm)
- puts "#{record['uuid']}\t#{record['name_label']}" if not record['is_a_template'] == true
- nil
+ puts "#{record['uuid']}\t#{record['name_label']}" if not record['is_a_template'] == true
end
end

0 comments on commit c6eee8d

Please sign in to comment.