vagrant-mos 0.8.52 → 0.8.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36b4e3462904aee8e2fc8a3dd6f742ad1c8100f9
4
- data.tar.gz: d227cc8c001846eef4c5f3d5df7043c2a54576fa
3
+ metadata.gz: 19d0897f6817f014641fc53677b9209ee4ead668
4
+ data.tar.gz: c0983c99bd9e8a25058082a77f6c877b52f5b035
5
5
  SHA512:
6
- metadata.gz: d29f70e17783f251af7d3ddc5baef0950249c710498b47eeb61f4e7afd02543e34d0a0878b1492c0d405a8cd7599c284829e5599c7a3517d7f3a412444d12505
7
- data.tar.gz: 86d9b7a9fd6839d829a405517f082622a19ac3588c29b5588928519ec41d0a10f6ed422d11645371bfe1512f406ee521a05f52c49d7904729d63b5a1652632e1
6
+ metadata.gz: 562cf8094996ee2f8446671e162350db42e27a4ab94931bf26390f16a622e7ac0921e09a8f2ea42824b148eba617a2c6e7389ac1b9d157cd08d16a333139abfc
7
+ data.tar.gz: 251260cbf24872cd692ac92713f0534e240080f64ae2f6e7773129ee4f2a2bcae309dfa34c263d935dd05aa324b54ee6deff0a3f2b49751560b74783426e0f56
@@ -39,7 +39,8 @@ module VagrantPlugins
39
39
  # This block attempts to burn the server instance into an AMI
40
40
  begin
41
41
  # Get the Fog server object for given machine
42
- server = env[:mos_compute].servers.get(env[:machine].id)
42
+ #server = env[:mos_compute].servers.get(env[:machine].id)
43
+ server = (env[:mos_compute].describe_instances([env[:machine].id]))["Instance"]
43
44
 
44
45
  env[:ui].info(I18n.t("vagrant_mos.packaging_instance", :instance_id => server.id))
45
46
 
@@ -28,7 +28,7 @@ module VagrantPlugins
28
28
  #puts server
29
29
  #puts "finish read_state"
30
30
  #server = mos.servers.get(machine.id)
31
- if server.nil? || [:"shutting-down", :terminated].include?(server["status"])
31
+ if server.nil? || [:"deleting"].include?(server["status"])
32
32
  # The machine can't be found
33
33
  @logger.info("Machine not found or terminated, assuming it got destroyed.")
34
34
  machine.id = nil
@@ -12,9 +12,9 @@ module VagrantPlugins
12
12
  end
13
13
 
14
14
  def call(env)
15
- server = env[:mos_compute].describe_instances(env[:machine].id)
16
- region = env[:machine].provider_config.region
17
- region_config = env[:machine].provider_config.get_region_config(region)
15
+ #server = env[:mos_compute].describe_instances(env[:machine].id)
16
+ #region = env[:machine].provider_config.region
17
+ #region_config = env[:machine].provider_config.get_region_config(region)
18
18
 
19
19
  #elastic_ip = region_config.elastic_ip
20
20
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module MOS
3
- VERSION = '0.8.52'
3
+ VERSION = '0.8.53'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-mos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.52
4
+ version: 0.8.53
5
5
  platform: ruby
6
6
  authors:
7
7
  - yangcs2009