cloudstack-cli 1.5.5 → 1.5.6

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: 1534777ce12a9ad4a323273c6e184b50c3c16bc7
4
- data.tar.gz: e8b84594f8ef10057587a07b2cab3fcc98974e77
3
+ metadata.gz: 5bf65435b9f87f2a26dad263cb17283cfbf11c49
4
+ data.tar.gz: a52d6aa1d060649024e085feddc041031e714487
5
5
  SHA512:
6
- metadata.gz: 8290b799556132db45388f13a3064b932a3189064196516c00b249faaf3197f8363a9908efde981e68f043f31f2d129e886b67b2a728f11f9fef8d2c321f0d59
7
- data.tar.gz: 2a68a0d8b25c7af5e02e90dc237340573a605f85a4f935e37d56a750970df2ff8138371dd5c9204fb65154278d8c7a5fc2d9f9b36e49fe1a6e118775c50cf0d0
6
+ metadata.gz: 578d5a63cbe75133dca255c114e3e65f79eead7038c3f1af3ad61331d8a43272f5407c7339f76789d7c768ad1a3b656310bc750d2cda1d663003db13b0b79d8b
7
+ data.tar.gz: 5b8f5f98ae5bc7813fd5f9c31eb661cb9a928c52558ff261808cb244c70a18feb49126de20652f69d3a4fa22d68689bade1bd2c89935da3053cc94ad11658768
data/Gemfile.lock CHANGED
@@ -6,7 +6,7 @@ PATH
6
6
  PATH
7
7
  remote: .
8
8
  specs:
9
- cloudstack-cli (1.5.4)
9
+ cloudstack-cli (1.5.6)
10
10
  cloudstack_client (~> 1.4)
11
11
  thor (~> 0.19)
12
12
 
data/README.md CHANGED
@@ -140,7 +140,7 @@ CloudStack CLI does support stack files in YAML or JSON.
140
140
  ip: 10.102.1.11
141
141
  ```
142
142
 
143
- *Create the stack of servers from the definition above:
143
+ *Create the stack of servers from the definition above:*
144
144
 
145
145
  ```bash
146
146
  $ cloudstack-cli stack create my_stackfile.yml
@@ -57,7 +57,7 @@ class Stack < CloudstackCli::Base
57
57
  jobs = []
58
58
  stack["servers"].each do |instance|
59
59
  string_to_array(instance["name"]).each do |name|
60
- if !options[:limit] || options[:limit].include?(name) && port_rules = string_to_array(instance["port_rules"])
60
+ if (!options[:limit] || options[:limit].include?(name)) && port_rules = string_to_array(instance["port_rules"])
61
61
  server = client.list_virtual_machines(name: name, project_id: project_id).first
62
62
  create_port_rules(server, port_rules, false).each_with_index do |job_id, index|
63
63
  job_name = "Create port forwarding rules (#{port_rules[index]}) for VM #{name}"
@@ -90,7 +90,9 @@ class Stack < CloudstackCli::Base
90
90
  servers = []
91
91
  stack["servers"].each do |server|
92
92
  string_to_array(server["name"]).each do |name|
93
- servers << name if options[:limit].include?(name)
93
+ if !options[:limit] || options[:limit].include?(name)
94
+ servers << name
95
+ end
94
96
  end
95
97
  end
96
98
 
@@ -1,3 +1,3 @@
1
1
  module CloudstackCli
2
- VERSION = "1.5.5"
2
+ VERSION = "1.5.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstack-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.5
4
+ version: 1.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nik Wolfgramm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-04 00:00:00.000000000 Z
11
+ date: 2016-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake