Skip to content

Commit

Permalink
Fix LXD wait for operation uri
Browse files Browse the repository at this point in the history
  • Loading branch information
dann1 committed Mar 25, 2019
1 parent 43e4212 commit da1ab9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vmm_mad/remotes/lib/lxd/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

Expand Down

0 comments on commit da1ab9d

Please sign in to comment.