cloudstack-cli 0.1.3 → 0.1.4

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.
data/Gemfile.lock CHANGED
@@ -1,9 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cloudstack-cli (0.1.2)
4
+ cloudstack-cli (0.1.3)
5
5
  net-ssh (~> 2.6.7)
6
- rainbow (~> 1.1.4)
7
6
  thor (~> 0.18.1)
8
7
 
9
8
  GEM
@@ -11,7 +10,6 @@ GEM
11
10
  specs:
12
11
  json (1.8.0)
13
12
  net-ssh (2.6.8)
14
- rainbow (1.1.4)
15
13
  rake (10.0.4)
16
14
  rdoc (4.0.1)
17
15
  json (~> 1.4)
@@ -1,3 +1,3 @@
1
1
  module CloudstackCli
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -130,8 +130,10 @@ module CloudstackClient
130
130
  }
131
131
  params['projectid'] = options[:project_id] if options[:project_id]
132
132
  if options[:account]
133
- params['domainid'] = list_accounts({name: options[:account]}).first["domainid"]
134
- params['account'] = options[:account]
133
+ if account = list_accounts({name: options[:account]}).first
134
+ params['domainid'] = account["domainid"]
135
+ params['account'] = options[:account]
136
+ end
135
137
  end
136
138
 
137
139
  json = send_request(params)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstack-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: