Fix upgrade command
This commit is contained in:
parent
38ab53f177
commit
bbc0187d52
|
@ -558,12 +558,12 @@ def deploy(apps, run_cmds, force, converge_checks):
|
|||
def upgrade(apps, run_cmds, dry_run):
|
||||
""" Deploy all the apps """
|
||||
deployed_domains = get_deployed_apps(apps)
|
||||
upgrade_cmds = []
|
||||
for _, instance_config in CONFIGS.items():
|
||||
if apps:
|
||||
selected_apps = [app for app in apps if app in instance_config.keys()]
|
||||
else:
|
||||
selected_apps = instance_config.keys()
|
||||
upgrade_cmds = []
|
||||
for app in selected_apps:
|
||||
app_config = instance_config[app]
|
||||
domain = app_config['app_domain']
|
||||
|
@ -585,7 +585,7 @@ def upgrade(apps, run_cmds, dry_run):
|
|||
if version == deployed_version:
|
||||
print(f"{domain} is already at version {version}")
|
||||
continue
|
||||
print(f'upgrade {domain} from version {deployed_version} to version "{version}"')
|
||||
print(f'upgrade {app}: {domain} from version {deployed_version} to version "{version}"')
|
||||
upgrade_cmds.append((app_config, cmd))
|
||||
if not dry_run and input(f"Do you really want to upgrade these apps? Type YES: ") == "YES":
|
||||
for app_config, cmd in upgrade_cmds:
|
||||
|
|
Loading…
Reference in New Issue