vagrant-lxd 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 304c1f8ee64a31435d51d95726660fd666f3febd
4
- data.tar.gz: 46cc574e2ad04aa6604e929c8046e10accabc81c
3
+ metadata.gz: 19b57c015f383c61855e133fbcca178eec5c389b
4
+ data.tar.gz: ebe1a99f880fa00afdf740e7c1c9f3163b53f22d
5
5
  SHA512:
6
- metadata.gz: e6a49fa60209a54a54ce4de1714281bfc760ad75a80898a34d300e935b35fca7d51397f473229ffc2f037403601a7ccf8dfb583fe88aa8c6d9e32e0bbbd46b4b
7
- data.tar.gz: ef6b64e67ecbbe673819096205b28bcba675c9162137efd550803810b8d54228fc1ccd49616cdabab705ee89092a2d0b26e91f343a0f3fc875471afe2ee71245
6
+ metadata.gz: b7f17bca98f8490e9c773d3848b5348a521e97d6352fae665007fb16b579e3fa74605fd73eccdbeb217cba0c8fa6f889b606e4b06925667d7632cb88a51c9096
7
+ data.tar.gz: 89218b6793e3ce419c4c9b486d81c8e88e4d35c5b00d22857247558d889f9d2a6faee55adfdecf1d03b38fb201217843507234ef71a5371526c2c9f6eae27dab
data/Gemfile.lock CHANGED
@@ -27,7 +27,7 @@ GIT
27
27
  PATH
28
28
  remote: .
29
29
  specs:
30
- vagrant-lxd (0.3.3)
30
+ vagrant-lxd (0.3.4)
31
31
  hyperkit (~> 1.2.0)
32
32
 
33
33
  GEM
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2017-2018 Catalyst.net Ltd
2
+ # Copyright (c) 2017-2019 Catalyst.net Ltd
3
3
  #
4
4
  # This file is part of vagrant-lxd.
5
5
  #
data/lib/vagrant-lxd.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2017-2018 Catalyst.net Ltd
2
+ # Copyright (c) 2017-2019 Catalyst.net Ltd
3
3
  #
4
4
  # This file is part of vagrant-lxd.
5
5
  #
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2017-2018 Catalyst.net Ltd
2
+ # Copyright (c) 2017-2019 Catalyst.net Ltd
3
3
  #
4
4
  # This file is part of vagrant-lxd.
5
5
  #
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2017-2018 Catalyst.net Ltd
2
+ # Copyright (c) 2017-2019 Catalyst.net Ltd
3
3
  #
4
4
  # This file is part of vagrant-lxd.
5
5
  #
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2017-2018 Catalyst.net Ltd
2
+ # Copyright (c) 2017-2019 Catalyst.net Ltd
3
3
  #
4
4
  # This file is part of vagrant-lxd.
5
5
  #
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2017-2018 Catalyst.net Ltd
2
+ # Copyright (c) 2017-2019 Catalyst.net Ltd
3
3
  #
4
4
  # This file is part of vagrant-lxd.
5
5
  #
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2017-2018 Catalyst.net Ltd
2
+ # Copyright (c) 2017-2019 Catalyst.net Ltd
3
3
  #
4
4
  # This file is part of vagrant-lxd.
5
5
  #
@@ -244,6 +244,7 @@ module VagrantLXD
244
244
 
245
245
  def create
246
246
  if in_state? NOT_CREATED
247
+ image, container = nil, nil
247
248
  machine_id = generate_machine_id
248
249
  file, fingerprint = Driver.synchronize { prepare_image_file }
249
250
 
@@ -269,7 +270,7 @@ module VagrantLXD
269
270
  @machine.id = machine_id
270
271
  end
271
272
  rescue Hyperkit::Error => e
272
- @lxd.delete_container(id) rescue nil unless container.nil?
273
+ @lxd.delete_container(machine_id) rescue nil unless container.nil?
273
274
  @lxd.delete_image(image[:metadata][:fingerprint]) rescue nil unless image.nil?
274
275
  if e.reason =~ /Container '([^']+)' already exists/
275
276
  @machine.ui.error e.reason
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2017-2018 Catalyst.net Ltd
2
+ # Copyright (c) 2017-2019 Catalyst.net Ltd
3
3
  #
4
4
  # This file is part of vagrant-lxd.
5
5
  #
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2017-2018 Catalyst.net Ltd
2
+ # Copyright (c) 2017-2019 Catalyst.net Ltd
3
3
  #
4
4
  # This file is part of vagrant-lxd.
5
5
  #
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2017-2018 Catalyst.net Ltd
2
+ # Copyright (c) 2017-2019 Catalyst.net Ltd
3
3
  #
4
4
  # This file is part of vagrant-lxd.
5
5
  #
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2017-2018 Catalyst.net Ltd
2
+ # Copyright (c) 2017-2019 Catalyst.net Ltd
3
3
  #
4
4
  # This file is part of vagrant-lxd.
5
5
  #
@@ -20,7 +20,7 @@
20
20
  module VagrantLXD
21
21
  module Version
22
22
  NAME = 'vagrant-lxd'
23
- VERSION = '0.3.3'
23
+ VERSION = '0.3.4'
24
24
  DESCRIPTION = 'Vagrant LXD provider'
25
25
  end
26
26
  end
data/vagrant-lxd.gemspec CHANGED
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2017-2018 Catalyst.net Ltd
2
+ # Copyright (c) 2017-2019 Catalyst.net Ltd
3
3
  #
4
4
  # This file is part of vagrant-lxd.
5
5
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-lxd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Hanson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-12 00:00:00.000000000 Z
11
+ date: 2019-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hyperkit