Skip to content
Browse files
fix: bad output on bad input for cloud-only
Fix to display a proper error message if cloud name is not input

closes: #296
Change-Id: Idce04459ae7da7b4a363d151043f64d126da2d00
  • Loading branch information
grafuls committed Nov 1, 2019
1 parent 2c56255 commit 095601b0132e72ad534ae8b7b6b4a2a019aace28
Showing with 3 additions and 0 deletions.
  1. +3 −0 bin/quads-cli
@@ -500,6 +500,9 @@ def main(_args):

elif _args.cloudonly:
_cloud = Cloud.objects(name=_args.cloudonly).first()
if not _cloud:
logger.error("Cloud is not defined.")
_kwargs = {"cloud": _cloud}
if _args.datearg:
_kwargs["date"] = datetime.datetime.strptime(_args.datearg, '%Y-%m-%d %H:%M').isoformat()

0 comments on commit 095601b

Please sign in to comment.