File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 91
91
sys .exit (4 )
92
92
93
93
__author__ = 'Hari Sekhon'
94
- __version__ = '0.7.0 '
94
+ __version__ = '0.7.1 '
95
95
96
96
97
97
class DockerfileGitBranchCheckTool (CLI ):
@@ -152,9 +152,11 @@ def run(self):
152
152
if branches_skipped > 0 :
153
153
log .warn ('{0} branches skipped for not matching expected naming format'
154
154
.format (branches_skipped ))
155
- branches_not_checked = len (self .selected_branches ) - len (self .branches_dockerfile_checked )
156
- if branches_not_checked > 1 :
157
- log .warn ('{0} branches not checked (no matching Dockerfile found?)' .format (branches_not_checked ))
155
+ branches_not_checked = [branch for branch in self .selected_branches \
156
+ if branch not in self .branches_dockerfile_checked ]
157
+ if len (branches_not_checked ) > 1 :
158
+ log .warn ('{0} branches not checked (no matching Dockerfile found?): {1}' \
159
+ .format (len (branches_not_checked ), branches_not_checked ))
158
160
if log .isEnabledFor (logging .DEBUG ):
159
161
log .debug ('Branches with no corresponding Dockerfile found:\n %s' ,
160
162
'\n ' .join (set (self .selected_branches ) - set (self .branches_dockerfile_checked )))
You can’t perform that action at this time.
0 commit comments