From 2cf506e7811114a370296f6cfc94504f96e5e21b Mon Sep 17 00:00:00 2001 From: Nick Burgan-Illig Date: Thu, 30 Jan 2020 00:01:23 +0000 Subject: [PATCH] (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. --- lib/vmfloaty/pooler.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/vmfloaty/pooler.rb b/lib/vmfloaty/pooler.rb index c85daf3..dc7498f 100644 --- a/lib/vmfloaty/pooler.rb +++ b/lib/vmfloaty/pooler.rb @@ -61,9 +61,9 @@ class Pooler conn = Http.get_conn(verbose, url) conn.headers['X-AUTH-TOKEN'] = token - if modify_hash['disk'] - disk(verbose, url, hostname, token, modify_hash['disk']) - modify_hash.delete 'disk' + if modify_hash[:disk] + disk(verbose, url, hostname, token, modify_hash[:disk]) + modify_hash.delete :disk end response = conn.put do |req|