Skip to content

Commit 0a23597

Browse files
author
Brian Curtin
committed
Allow examples.get call without data
It wasn't possible to call examples.get without a --data parameter. This change checks if the opts.data is empty, and if so, just deals with it. Change-Id: I262e8f8b061d163e478c3b9fe611a44180119909
1 parent bddb145 commit 0a23597

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

examples/common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ def find_resource_cls(opts):
6767

6868

6969
def get_data_option(opts):
70+
if not opts.data:
71+
return opts.data
7072
try:
7173
iddy = uuid.UUID(opts.data)
7274
return {'id': iddy}

0 commit comments

Comments
 (0)