mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
Fix if branch and option syntax errors
This commit is contained in:
parent
ca90919c03
commit
18869bb440
1 changed files with 2 additions and 2 deletions
|
|
@ -48,14 +48,14 @@ class CLI < Thor
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "release <HOSTNAME,...> [--all]", "Schedules a VM for deletion"
|
desc "release <HOSTNAME,...> [--all]", "Schedules a VM for deletion"
|
||||||
options :all
|
option :all
|
||||||
def release(hostname_list=nil)
|
def release(hostname_list=nil)
|
||||||
# HTTP DELETE vmpooler.company.com/vm/#{hostname}
|
# HTTP DELETE vmpooler.company.com/vm/#{hostname}
|
||||||
# { "ok": true }
|
# { "ok": true }
|
||||||
|
|
||||||
if options[:all]
|
if options[:all]
|
||||||
# release all hosts managed by vmfloaty
|
# release all hosts managed by vmfloaty
|
||||||
end
|
else
|
||||||
hostname_arr = hostname_list.split(',')
|
hostname_arr = hostname_list.split(',')
|
||||||
|
|
||||||
hostname_arr.each do |hostname|
|
hostname_arr.each do |hostname|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue