kitchen-ansiblepush 0.8.0 → 0.9.0
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.
- checksums.yaml +4 -4
- data/callback/changes.py +4 -4
- data/lib/kitchen-ansible/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b7fcd9aa156349db0aa5afee396f4e4d728591a
|
4
|
+
data.tar.gz: 886c3f399d019b24c5866f35be69d4a961c78cfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45bbae7366ed2c596b5d1d181e398f8a30d86258658362e9b7455b5a05e47ae6375c46d61f2d88a19ece334605d4a18d83582ef4601d2b1ae1e34903edecddd5
|
7
|
+
data.tar.gz: 772597683ec79bec210978547326903f7c530a3329f38a9ced85bd17503c02a6aedd051d5e494c42b5a07bfb3cdf9b854fa6bf91383226e4ecfc97ed6a26b9f6
|
data/callback/changes.py
CHANGED
@@ -7,7 +7,7 @@ if not hasattr(js, 'dumps'):
|
|
7
7
|
try:
|
8
8
|
from ansible.plugins.callback import CallbackBase
|
9
9
|
except ImportError:
|
10
|
-
print
|
10
|
+
print("Fallback to Ansible 1.x compatibility")
|
11
11
|
CallbackBase = object
|
12
12
|
|
13
13
|
class CallbackModule(CallbackBase):
|
@@ -47,8 +47,8 @@ class CallbackModule(CallbackBase):
|
|
47
47
|
try:
|
48
48
|
with open(self.change_file, 'at') as the_file:
|
49
49
|
the_file.write(js.dumps(changed_data) + "\n")
|
50
|
-
except Exception
|
51
|
-
print
|
50
|
+
except Exception as e:
|
51
|
+
print("Ansible callback idempotency: Write to file failed '{0}' error:'{1}'".format(self.change_file, e))
|
52
52
|
exit(1)
|
53
53
|
|
54
54
|
def on_any(self, *args, **kwargs):
|
@@ -110,4 +110,4 @@ class CallbackModule(CallbackBase):
|
|
110
110
|
pass
|
111
111
|
|
112
112
|
def playbook_on_stats(self, stats):
|
113
|
-
print
|
113
|
+
print("Call back end")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-ansiblepush
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adham Helal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|