kakine 0.6.0 → 0.6.1

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: 3ff6361e6aba472ff2c8f354fd1633d9926d37e4
4
- data.tar.gz: 4ec1db1c421b5ff28fab1d51616b25c3e298a88e
3
+ metadata.gz: f72ed48bdd97e7c3c12e890df10e163c9e5b2246
4
+ data.tar.gz: 1018e3e84ef77b4a9cea77d1e4fb52dea9ac58f5
5
5
  SHA512:
6
- metadata.gz: 5f668ab77e241f048848b0345675ffd247c464dc373c3d62817d1efa44e1bd2d12ea6a353281baa085ce4a240733daa9276e3a5e1a6ed7cea34f2eb77f70befe
7
- data.tar.gz: 887e425176bc3b1c99848ae31c10d1346bea8c7fcec2062fe4fca4de257051ed4430bb69c4a9f6a2df3d41622e955d0ce9cbe85fcf29d70dc640b928ba886dfc
6
+ metadata.gz: a96451f1ab90c5a76ea3af765454d0f0c4924566251f034e375d44c3c694868b318a750297b6446c9e994f63f7eaf46f1ad366ace177aa415f00e6a2643375ac
7
+ data.tar.gz: 87e6507a5f2d3ffe030cce3fc606c2196cd8836ae5a05967767bcd7506d4b2c862963f01acdb1060c4943acdeee7c30b2d94c411272d68f10b39cc7d92a2a8c7
@@ -6,8 +6,8 @@ module Kakine
6
6
  begin
7
7
  security_rule = symbolized_rule(security_rule)
8
8
  Yao::SecurityGroupRule.create(security_rule.merge({'security_group_id' => security_group_id, 'direction' => direction}))
9
- rescue Excon::Errors::Conflict, Excon::Errors::BadRequest => e
10
- error_message(e.response[:body])
9
+ rescue Yao::Conflict, Yao::BadRequest => e
10
+ error_message(e.message)
11
11
  rescue Kakine::SecurityRuleError => e
12
12
  puts e
13
13
  end
@@ -21,16 +21,16 @@ module Kakine
21
21
  begin
22
22
  security_group = Yao::SecurityGroup.create(symbolized_group(attributes))
23
23
  {"id" => security_group.id}
24
- rescue Excon::Errors::Conflict, Excon::Errors::BadRequest => e
25
- error_message(e.response[:body])
24
+ rescue Yao::Conflict, Yao::BadRequest => e
25
+ error_message(e.message)
26
26
  end
27
27
  end
28
28
 
29
29
  def delete_security_group(security_group_id)
30
30
  begin
31
31
  Yao::SecurityGroup.destroy(security_group_id)
32
- rescue Excon::Errors::Conflict, Excon::Errors::BadRequest => e
33
- error_message(e.response[:body])
32
+ rescue Yao::Conflict, Yao::BadRequest => e
33
+ error_message(e.message)
34
34
  end
35
35
  end
36
36
 
@@ -1,3 +1,3 @@
1
1
  module Kakine
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kakine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - SHIBATA Hiroshi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-04 00:00:00.000000000 Z
11
+ date: 2016-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yao
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  version: '0'
149
149
  requirements: []
150
150
  rubyforge_project:
151
- rubygems_version: 2.5.1
151
+ rubygems_version: 2.4.5.1
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: Security Group configuration tool for OpenStack.