Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit c6eee8d4989ac8f803848f1e0a7bfba3f5a9eb6c 1 parent 8f0e821
@seungjin authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/chef/knife/xapi_guest_list.rb
View
3  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
Please sign in to comment.
Something went wrong with that request. Please try again.