[bug] preflight-prevent-actions-dep-tiller-states

* moved prefight to the top of sync to prevent any actions
This commit is contained in:
gardlt 2017-06-19 09:06:59 -05:00 committed by Alexis Rivera DeLa Torre
parent 50c7ab4b04
commit e046ee4c23
1 changed files with 6 additions and 6 deletions

View File

@ -87,6 +87,12 @@ class Armada(object):
'''
# extract known charts on tiller right now
if not self.skip_pre_flight:
LOG.info("Performing Pre-Flight Checks")
self.pre_flight_checks()
else:
LOG.info("Skipping Pre-Flight Checks")
known_releases = self.tiller.list_charts()
prefix = self.config.get('armada').get('release_prefix')
@ -94,12 +100,6 @@ class Armada(object):
LOG.debug("Release %s, Version %s found on tiller", release[0],
release[1])
if not self.skip_pre_flight:
LOG.info("Performing Checking Pre Flight Tasks")
self.pre_flight_checks()
else:
LOG.info("Skipping Pre flight Checks")
for entry in self.config['armada']['charts']:
chart = dotify(entry['chart'])