Make the session command a little more friendly
Make the session command a little more friendly with an error message. Change-Id: I1598c0fe18c21c80836bf2f069695527807dd0f9
This commit is contained in:
@@ -26,8 +26,9 @@ def make_session(opts):
|
|||||||
|
|
||||||
|
|
||||||
def run_session(opts):
|
def run_session(opts):
|
||||||
"""Create session."""
|
|
||||||
argument = opts.argument
|
argument = opts.argument
|
||||||
|
if argument is None:
|
||||||
|
raise Exception("A path argument must be specified")
|
||||||
sess = make_session(opts)
|
sess = make_session(opts)
|
||||||
filtration = service_filter.ServiceFilter('Identity')
|
filtration = service_filter.ServiceFilter('Identity')
|
||||||
print("Session: %s" % sess)
|
print("Session: %s" % sess)
|
||||||
|
|||||||
Reference in New Issue
Block a user