vagrant-persistent-storage 0.0.8 → 0.0.9

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: 5fb1da711b3dc37f73b3a6db4d21154a2c0c149b
4
- data.tar.gz: dfa4742ec27108e21131fca4463b9c3093fc68e9
3
+ metadata.gz: 4f0cadc2e199f85a3aaa80e3228bc17e182ec7cf
4
+ data.tar.gz: 6bc2b385719a8ab503ed39528203d9501e80ee9d
5
5
  SHA512:
6
- metadata.gz: 77ae13fabc8db8d95ddf770da57f3c89df54c4ce78b6145a35cff333ca6bd831a6cf9782a71f03a3b32470accfe786b780ae0aaae5d356f5e44a2256fd87433b
7
- data.tar.gz: 8973156849a747785190cb167ed4b5e448a91e0d2459df2480cb84522dea0699760562af93f57ba5715955e0b39f1ed665b9184ef57cd7183dd4b9cde36b6558
6
+ metadata.gz: 452eff85038492ec9e3db66783757b7af7985147fe426493e66267323ffc8f7e6d4c87695fab7dd19232f3afd27329d023c39b4a3b64576cbc6f9cd06fb5ea8f
7
+ data.tar.gz: 06b67160d90d72fe803a6b03c4308db14f2ab58bfd515e7a1cc46fef8f1da3b20f8209a59fd997feafad9c379c87e41223c0265c12b753ecc846296a180c6b4a
@@ -24,12 +24,13 @@ module VagrantPlugins
24
24
  end
25
25
 
26
26
  def detach_storage(location)
27
- if location and identical_files(read_persistent_storage(location), location)
27
+ persistent_storage = read_persistent_storage()
28
+ if location and persistent_storage != "none" and identical_files(persistent_storage, location)
28
29
  execute("storageattach", @uuid, "--storagectl", get_sata_controller_name, "--port", "1", "--device", "0", "--type", "hdd", "--medium", "none")
29
30
  end
30
31
  end
31
32
 
32
- def read_persistent_storage(location)
33
+ def read_persistent_storage()
33
34
  ## Ensure previous operations are complete - bad practise yes, not sure how to avoid this:
34
35
  sleep 3
35
36
  info = execute("showvminfo", @uuid, "--machinereadable", :retryable => true)
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module PersistentStorage
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-persistent-storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Kusnier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-23 00:00:00.000000000 Z
11
+ date: 2014-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake