TritonDataCenter / python-manta

Python SDK for Manta (community maintained)
MIT License
25 stars 18 forks source link

mantash provides incorrect error message for missing MANTA_KEY_ID #63

Open rjloura opened 5 years ago

rjloura commented 5 years ago
mantash: ERROR: no Manta key ID: use '-i' or 'MANTA_KEY_ID' envvar (./bin/mantash:208 in postoptparse)
Traceback (most recent call last):
  File "./bin/mantash", line 2301, in <module>
    retval = main(sys.argv)
  File "./bin/mantash", line 2296, in main
    return shell.main(argv, loop=cmdln.LOOP_IF_EMPTY)
  File "/home/Administrator/git/python-manta/manta/cmdln.py", line 253, in main
    retval = self.postoptparse()
  File "./bin/mantash", line 208, in postoptparse
    "no Manta key ID: use '-i' or 'MANTA_KEY_ID' envvar")
MantashError: no Manta key ID: use '-i' or 'MANTA_KEY_ID' envvar

Even when specifying -i the same error is displayed.

Looking at the code the proper flag is -k or --keyId