Skip to content

Commit

Permalink
F #3297: avoid update
Browse files Browse the repository at this point in the history
  • Loading branch information
dann1 committed Jun 20, 2019
1 parent a2599fe commit 1458a92
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/vmm_mad/remotes/lib/lxd/container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,9 @@ def exist?(name, client)
# Create a container without a base image
def create(wait: true, timeout: '')
@lxc['source'] = { 'type' => 'none' }
wait?(@client.post(CONTAINERS, @lxc), wait, timeout)

@lxc['config']['user.one_status'] = '0'
update

wait?(@client.post(CONTAINERS, @lxc), wait, timeout)

@lxc = @client.get("#{CONTAINERS}/#{name}")['metadata']
end
Expand Down

0 comments on commit 1458a92

Please sign in to comment.