(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:
Nick Burgan-Illig 2020-01-30 00:01:23 +00:00
parent 8b4cc806a3
commit 2cf506e781

View file

@ -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|