Log a more informative error upon EndpointNotFound
Change-Id: I2e3886a66ae57e810db1b5b4cb197bc7b8c157ed
This commit is contained in:
parent
af7bdadf43
commit
a6577e297f
@ -18,6 +18,7 @@ import abc
|
||||
from cliff.command import Command as CliffCommand
|
||||
from cliff.lister import Lister
|
||||
from cliff.show import ShowOne
|
||||
from keystoneclient import exceptions as ks_exceptions
|
||||
import six
|
||||
|
||||
from designateclient import exceptions
|
||||
@ -48,6 +49,8 @@ class Command(CliffCommand):
|
||||
values.append(e.errors)
|
||||
|
||||
self.error_output(parsed_args, columns, values)
|
||||
except ks_exceptions.EndpointNotFound:
|
||||
self.app.log.error("No endpoint was found. Missing credentials?")
|
||||
|
||||
return 1
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user