anchore / anchore-cli

Simple command-line client to the Anchore Engine service
Apache License 2.0
114 stars 55 forks source link

Error if config url missing trailing slash(/) #17

Closed MMartyn closed 6 years ago

MMartyn commented 6 years ago

If you supply a url that doesn't contain a trailing slash then the cli throws an error trying to connect to the engine to determine api version. The following line appears to be the culprit:

https://github.com/anchore/anchore-cli/blob/3c981b16d9ddcdc800779db409695cd01f1625e3/anchorecli/clients/apiexternal.py#L166