mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-25 21: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
|
||||
|
||||
desc "release <HOSTNAME,...> [--all]", "Schedules a VM for deletion"
|
||||
options :all
|
||||
option :all
|
||||
def release(hostname_list=nil)
|
||||
# HTTP DELETE vmpooler.company.com/vm/#{hostname}
|
||||
# { "ok": true }
|
||||
|
||||
if options[:all]
|
||||
# release all hosts managed by vmfloaty
|
||||
end
|
||||
else
|
||||
hostname_arr = hostname_list.split(',')
|
||||
|
||||
hostname_arr.each do |hostname|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue