Skip to content

Commit

Permalink
HUE-5415 [metadata] Rename client command
Browse files Browse the repository at this point in the history
  • Loading branch information
romainr committed Dec 5, 2016
1 parent 7b68581 commit a4beea2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions desktop/libs/metadata/src/metadata/optimizer_client.py
Expand Up @@ -78,16 +78,16 @@ def _exec(self, command, args):
response = {'status': 'error'}

try:
data = subprocess.check_output([
'cws',
cmd_args = [
'ccs',
'navopt',
'--endpoint-url=%s' % self._api_url,
command,
'--auth-config',
self._product_secret
] +
args
)
command
]
if self._product_secret:
cmd_args += ['--auth-config', self._product_secret]

data = subprocess.check_output(cmd_args + args)
except CalledProcessError, e:
if command == 'upload' and e.returncode == 1:
LOG.info('Upload command is successful despite return code of 1: %s' % e.output)
Expand Down

0 comments on commit a4beea2

Please sign in to comment.