Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Commit

Permalink
Merge pull request #10 from trainline/bug/silent-mode-prompt
Browse files Browse the repository at this point in the history
check for ci mode in patch operations
  • Loading branch information
duncanhall authored Jun 9, 2017
2 parents 421206f + 10542bd commit fe7ded5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion emcli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Trainline Limited, 2017. All rights reserved. See LICENSE.txt in the project root for license information.

__version__ = '1.9.1'
__version__ = '1.9.4'

7 changes: 5 additions & 2 deletions emcli/commands/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,11 @@ def confirm_patch(self, patches):
self.show_result({}, message)
return False
else:
message.append('Do you want to continue? (y/n) ')
return confirm(message)
if self.opts.get('ci-mode'):
return True
else:
message.append('Do you want to continue? (y/n) ')
return confirm(message)

def get_patch_requirements(self, cluster, env, from_ami=None, to_ami=None, whitelist=None, blacklist=None):
# We're only interested in Windows as Linux instances auto-update
Expand Down

0 comments on commit fe7ded5

Please sign in to comment.