Skip to content

Commit

Permalink
Merge "Bug: contrail-logs --help failed if --admin-user or --admin-pa…
Browse files Browse the repository at this point in the history
…ssword is not correct"
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 21, 2017
2 parents cc6134c + 7031416 commit a13926e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/opserver/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ def run(self):
username = sys.argv[index]
elif arg == "--admin-password":
password = sys.argv[index]

if self.parse_args() != 0:
return

tab_url = "http://" + analytics_api_ip + ":" +\
analytics_api_port + "/analytics/tables"
tables = OpServerUtils.get_url_http(tab_url,
Expand All @@ -78,8 +82,7 @@ def run(self):
# For object table the mapping between the actual table
# name and the table name used in help msg are the same
OBJECT_TABLE_MAP[table['name']]=table['name']
if self.parse_args() != 0:
return

if self._args.tail:
start_time = UTCTimestampUsec() - 10*pow(10,6)
while True:
Expand Down

0 comments on commit a13926e

Please sign in to comment.