miasma-lxd 0.1.6 → 0.1.8

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: 511a65757dbfaed9abad4c21a058fbfe60298408
4
- data.tar.gz: 8133d36c29d5040cca8fbe919e29fc55364a82c9
3
+ metadata.gz: 9794a53e20f4c2d80d3673eef0cf1809c9ea8950
4
+ data.tar.gz: 3b22faf5acedb0fca9055144a358ef9993e6feba
5
5
  SHA512:
6
- metadata.gz: 2860741b4e4a875cc9a5a9069646a731a4a16e940cbaa3c84a4791f68759d925a139c77827637cef08071bcbe1722588b188eab450d21739f9388bc4d680cec6
7
- data.tar.gz: a5d92f3fde94674284b1ee7ac8caadde8045ed08c431ca7bb1ad1864aa9bd463dae9e0ec44610def49b3122cd8e9ea1cab90e1a144ac379a3a008ce629e37b88
6
+ metadata.gz: edde473301a90f4e5b1714b78a28383e9ff0ef4aed231e4a1d402eb917773851f5296482d0aa3701c4ab20a8bd996ee26972cb2b16cded994d82852d054461fc
7
+ data.tar.gz: 0f440f7434217338cd1f0db19f342421ae747e60c9ea4d8da30a4c9c1b7ec213e46db5e9b557596d313f65005032d8e32e1cbd144cd1c36126b284700f57fdef
@@ -1,3 +1,6 @@
1
+ # v0.1.8
2
+ * Proper set server id prior to reload on start
3
+
1
4
  # v0.1.6
2
5
  * Wait for instance to become available on create
3
6
  * Retry start when instance still stopped on save
@@ -1,4 +1,4 @@
1
1
  module MiasmaLxd
2
2
  # Current library version
3
- VERSION = Gem::Version.new('0.1.6')
3
+ VERSION = Gem::Version.new('0.1.8')
4
4
  end
@@ -113,7 +113,7 @@ module Miasma
113
113
  }
114
114
  )
115
115
  wait_for_operation(result.get(:body, :operation))
116
- until(server.state == :running)
116
+ until(server.state == :running || server.state == :terminated)
117
117
  request(
118
118
  :path => "containers/#{server.name}/state",
119
119
  :method => :put,
@@ -123,9 +123,12 @@ module Miasma
123
123
  }
124
124
  )
125
125
  wait_for_operation(result.get(:body, :operation), 60)
126
+ server.id = server.name
126
127
  server.reload
127
128
  end
128
- server.id = server.name
129
+ if(server.state == :terminated)
130
+ raise "Failed to save server state! (`#{server.name}`)"
131
+ end
129
132
  server
130
133
  end
131
134
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miasma-lxd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-13 00:00:00.000000000 Z
11
+ date: 2015-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bogo-websocket