summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre-Yves Chibon <pingou@pingoured.fr>2017-05-02 13:38:40 +0200
committerPierre-Yves Chibon <pingou@pingoured.fr>2017-05-02 13:38:40 +0200
commitdff13eade90ea668a600887b60deb3493730443b (patch)
tree094f0e66e9fb0c90b885c4c12d0573f8ba84ab13
parent70b6f996986a185b552249489216a16cd8bcad9c (diff)
downloadansible-dff13eade90ea668a600887b60deb3493730443b.tar.gz
ansible-dff13eade90ea668a600887b60deb3493730443b.tar.xz
ansible-dff13eade90ea668a600887b60deb3493730443b.zip
And one more typo to fix...
-rw-r--r--roles/batcave/files/fedmsg-announce-commits.py2
-rwxr-xr-xroles/git/hooks/files/post-receive-fedmsg2
2 files changed, 2 insertions, 2 deletions
diff --git a/roles/batcave/files/fedmsg-announce-commits.py b/roles/batcave/files/fedmsg-announce-commits.py
index 45682945b..b0fdd6609 100644
--- a/roles/batcave/files/fedmsg-announce-commits.py
+++ b/roles/batcave/files/fedmsg-announce-commits.py
@@ -52,7 +52,7 @@ def build_stats(commit):
if hasattr(patch, 'new_file_path'):
path = patch.new_file_path
else:
- path = patch.delta.new_file_path
+ path = patch.delta.new_file.path
if hasattr(patch, 'additions'):
files[path]['additions'] += patch.additions
diff --git a/roles/git/hooks/files/post-receive-fedmsg b/roles/git/hooks/files/post-receive-fedmsg
index 57314f00e..3545be2e3 100755
--- a/roles/git/hooks/files/post-receive-fedmsg
+++ b/roles/git/hooks/files/post-receive-fedmsg
@@ -56,7 +56,7 @@ def build_stats(commit):
if hasattr(patch, 'new_file_path'):
path = patch.new_file_path
else:
- path = patch.delta.new_file_path
+ path = patch.delta.new_file.path
if hasattr(patch, 'additions'):
files[path]['additions'] += patch.additions