mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
(maint) Fix modify --disk flag
When the modify hash is passed, it includes :disk as a symbol, rather than a string. This fixes that, and allows the --disk flag to work again.
This commit is contained in:
parent
8b4cc806a3
commit
2cf506e781
1 changed files with 3 additions and 3 deletions
|
|
@ -61,9 +61,9 @@ class Pooler
|
||||||
conn = Http.get_conn(verbose, url)
|
conn = Http.get_conn(verbose, url)
|
||||||
conn.headers['X-AUTH-TOKEN'] = token
|
conn.headers['X-AUTH-TOKEN'] = token
|
||||||
|
|
||||||
if modify_hash['disk']
|
if modify_hash[:disk]
|
||||||
disk(verbose, url, hostname, token, modify_hash['disk'])
|
disk(verbose, url, hostname, token, modify_hash[:disk])
|
||||||
modify_hash.delete 'disk'
|
modify_hash.delete :disk
|
||||||
end
|
end
|
||||||
|
|
||||||
response = conn.put do |req|
|
response = conn.put do |req|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue