cloudstack_client 0.6.3 → 0.6.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: 9a66228b7d7da1da3ee815f17081c952e54b5c7c
4
- data.tar.gz: b0244e79989fc73990360714616686921594b0bc
3
+ metadata.gz: cea9000179c05b3b2b5b8a874b69584b77eb7177
4
+ data.tar.gz: c891843c2401add5d1a51f2d667426d4eb5785c0
5
5
  SHA512:
6
- metadata.gz: e6f6c819d3505116ac2eb0d807a6d0984e272df95d89068c4c986b823cac21a854e9235f1cedbe4b855ab8da2315e8a619526283c0cb90d4a9fe21d09d0b91a6
7
- data.tar.gz: 7913fc5646a282174e07fcb0d30149d9bf5d263c2c13277803e231046adc2d04dd82bd6fa83d28322e5d4d3aba7d7dafb17fdb7f6816c023e4cc4dfa55ebfd10
6
+ metadata.gz: 92c715f4af3ea491f448176f6c26eb72ac3132ce01bdf6c7f8e16a4f95bb872c707a3f6b0a84f10512d4bbb168467faed26d10bb0c345c7a2dcc956cb0b2150f
7
+ data.tar.gz: d0682349d967f461cdfa5380a7e135702d87f532563fcd942f10e4a4ec43a82000025e228049d19cc099753bf18955aad1a771b5e3010369ac64e04544ec7739
@@ -189,9 +189,7 @@ module CloudstackClient
189
189
  params['name'] = args[:name] if args[:name]
190
190
 
191
191
  if args[:name]
192
- server = params['projectid'] ?
193
- get_server(args[:name], project_id: params['projectid']) :
194
- get_server(args[:name])
192
+ server = get_server(args[:name], project_id: params['projectid'])
195
193
  if server
196
194
  puts "Error: Server '#{args[:name]}' already exists."
197
195
  exit 1
@@ -201,7 +199,7 @@ module CloudstackClient
201
199
  networks = []
202
200
  if args[:networks]
203
201
  args[:networks].each do |name|
204
- network = defined?(project) ? get_network(name, project['id']) : get_network(name)
202
+ network = get_network(name, params['projectid'])
205
203
  if !network
206
204
  puts "Error: Network '#{name}' not found"
207
205
  exit 1
@@ -217,7 +215,6 @@ module CloudstackClient
217
215
  networks << default_network
218
216
  end
219
217
  network_ids = networks.map { |network|
220
- puts network
221
218
  network['id']
222
219
  }
223
220
  params['networkids'] = network_ids.join(',')
@@ -1,3 +1,3 @@
1
1
  module CloudstackClient
2
- VERSION = "0.6.3"
2
+ VERSION = "0.6.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstack_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nik Wolfgramm