From da1ab9df3b6866f8a56048aa344bc3aa951df692 Mon Sep 17 00:00:00 2001 From: Daniel Clavijo Coca Date: Mon, 25 Mar 2019 12:16:37 -0600 Subject: [PATCH] Fix LXD wait for operation uri --- src/vmm_mad/remotes/lib/lxd/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vmm_mad/remotes/lib/lxd/client.rb b/src/vmm_mad/remotes/lib/lxd/client.rb index 0d0fd3301b7..46fac3766aa 100644 --- a/src/vmm_mad/remotes/lib/lxd/client.rb +++ b/src/vmm_mad/remotes/lib/lxd/client.rb @@ -94,7 +94,7 @@ def patch(uri, data) def wait(response, timeout) operation_id = response['operation'].split('/').last - timeout = "?timeout=#{timeout}" if [nil, ''].include?(timeout) + timeout = "?timeout=#{timeout}" unless [nil, ''].include?(timeout) response = get("operations/#{operation_id}/wait#{timeout}")