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 +4 -4
- data/lib/cloudstack_client/commands/server.rb +2 -5
- data/lib/cloudstack_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cea9000179c05b3b2b5b8a874b69584b77eb7177
|
4
|
+
data.tar.gz: c891843c2401add5d1a51f2d667426d4eb5785c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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(',')
|