Skip to content

Commit b8305cb

Browse files
committed
fix deploy_local_war
1 parent 4c8a703 commit b8305cb

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

ZanataWar.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ def deploy_local_war(war=None):
139139
"""Deploy a build local WAR to zanata server.
140140
This assumes login as root"""
141141
if not war:
142-
if not args.local_path:
143-
raise AssertionError("args.local_path is missing")
144-
war = ZanataWar(local_path=args.local_path)
142+
if not args.war_file:
143+
raise AssertionError("args.war_file is missing")
144+
war = ZanataWar(local_path=args.war_file)
145145

146146
ssh_host = SshHost(args.host, args.identity_file)
147147
ssh_host.run_check_call("systemctl stop eap7-standalone", True)
@@ -205,7 +205,10 @@ def parse():
205205
'deploy-local-war',
206206
help="""deploy the existing local WAR to server
207207
(assuming you are able to sudo)""",
208-
parents=[war_parent_parser, ssh_parent_parser])
208+
parents=[ssh_parent_parser])
209+
deploy_local_war_parser.add_argument(
210+
'war_file', type=str,
211+
help='Local WAR file to be upload')
209212
deploy_local_war_parser.set_defaults(func=deploy_local_war)
210213

211214
deploy_parser = subparsers.add_parser(

0 commit comments

Comments
 (0)