vagrant-mos 0.9.23 → 0.9.24

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: db7ff4eacde4cbb5229ac829e02010269eadcbdf
4
- data.tar.gz: 3ad07e6f11dd8136e64cb96091628e587de03589
3
+ metadata.gz: 3fb943e2fe26ba7b745aa95fd16b2c5252d46050
4
+ data.tar.gz: a7b9148932b560e9751db3ce0b0c45dcb7c601f4
5
5
  SHA512:
6
- metadata.gz: f6269d10fc10bf6378f2fcd0cf49ebab5adf25ad6367e80fb09a89ef03aa4ecb35c1b33e747b087fccb88d329459b5972566867c8521324e8c11593b0d5e2aac
7
- data.tar.gz: db39fd83ab78a91065f997d3aee02f7f157b49e3693f98615c0f86e8e58bbe1e43c988bbed6606cf65cab016fa550c54af25523ae612af9fabe6e3fc62c44559
6
+ metadata.gz: 2d98de545c48cd1b20634fd016f4c9641bc75c284019d6151e316876b2765192d4f638d105a5c81d7474b3e426a552548b7bffad5711ca2313ddab905ce413dc
7
+ data.tar.gz: f57b7334609697ecdba75fd7267e168cbc369e69435c77a36066a292a75089d702b4db020090fb8d339442e7c28ec8e9996a7784f8c85abed780699e41e7f66f
@@ -32,7 +32,6 @@ module VagrantPlugins
32
32
  name = region_config.name
33
33
  instance_type = region_config.instance_type
34
34
  keypair = region_config.keypair_name
35
- terminate_on_shutdown = region_config.terminate_on_shutdown
36
35
 
37
36
  # If there is no keypair then warn the user
38
37
  if !keypair
@@ -47,7 +46,6 @@ module VagrantPlugins
47
46
  env[:ui].info(" -- Data_disk: #{data_disk}")
48
47
  env[:ui].info(" -- Band_width: #{band_width}")
49
48
  env[:ui].info(" -- Keypair: #{keypair}") if keypair
50
- env[:ui].info(" -- Terminate On Shutdown: #{terminate_on_shutdown}")
51
49
 
52
50
  options = {
53
51
  :flavor_id => instance_type,
@@ -56,12 +54,11 @@ module VagrantPlugins
56
54
  :data_disk => data_disk,
57
55
  :band_width => band_width,
58
56
  :key_name => keypair,
59
- :instance_initiated_shutdown_behavior => terminate_on_shutdown == true ? "terminate" : nil,
60
57
  }
61
58
 
62
59
  begin
63
60
  # create a handler to access MOS
64
- server = env[:mos_compute].create_instance(options[:template_id], options[:flavor_id], nil, options[:name], options[:key_name], options[:datadisk], options[:bandwidth])
61
+ server = env[:mos_compute].create_instance(options[:template_id], options[:flavor_id], nil, options[:name], options[:key_name], options[:data_disk], options[:band_width])
65
62
  rescue Exception => e
66
63
  raise Errors::MosError, :message => e.message
67
64
  end
@@ -69,11 +69,6 @@ module VagrantPlugins
69
69
  # @return [Boolean]
70
70
  attr_accessor :use_iam_profile
71
71
 
72
- # Indicates whether an instance stops or terminates when you initiate shutdown from the instance
73
- #
74
- # @return [bool]
75
- attr_accessor :terminate_on_shutdown
76
-
77
72
  # Specifies which address to connect to with ssh
78
73
  # Must be one of:
79
74
  # - :public_ip_address
@@ -98,7 +93,6 @@ module VagrantPlugins
98
93
  @access_secret = UNSET_VALUE
99
94
  @access_url = UNSET_VALUE
100
95
  @use_iam_profile = UNSET_VALUE
101
- @terminate_on_shutdown = UNSET_VALUE
102
96
  @ssh_host_attribute = UNSET_VALUE
103
97
 
104
98
  # Internal state (prefix with __ so they aren't automatically
@@ -202,9 +196,6 @@ module VagrantPlugins
202
196
  # By default we don't use an IAM profile
203
197
  @use_iam_profile = false if @use_iam_profile == UNSET_VALUE
204
198
 
205
- # default false
206
- @terminate_on_shutdown = false if @terminate_on_shutdown == UNSET_VALUE
207
-
208
199
  # default to nil
209
200
  @ssh_host_attribute = nil if @ssh_host_attribute == UNSET_VALUE
210
201
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module MOS
3
- VERSION = '0.9.23'
3
+ VERSION = '0.9.24'
4
4
  end
5
5
  end
@@ -25,7 +25,6 @@ describe VagrantPlugins::MOS::Config do
25
25
  its("access_secret") { should be_nil }
26
26
  its("access_url") { should be_nil }
27
27
  its("use_iam_profile") { should be_false }
28
- its("terminate_on_shutdown") { should == false }
29
28
  its("ssh_host_attribute") { should be_nil }
30
29
  end
31
30
 
@@ -36,7 +35,7 @@ describe VagrantPlugins::MOS::Config do
36
35
  # and asserts the proper result comes back out.
37
36
  [:access_key, :template_id, :data_disk, :band_width, :instance_ready_timeout, :name,
38
37
  :instance_type, :keypair_name, :ssh_host_attribute,
39
- :region, :access_secret, :access_url, :terminate_on_shutdown,
38
+ :region, :access_secret, :access_url,
40
39
  :use_iam_profile].each do |attribute|
41
40
 
42
41
  it "should not default #{attribute} if overridden" do
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.9.23
4
+ version: 0.9.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - yangcs2009