diff --git a/refstack/cli/refstack b/refstack/cli/refstack index edff84ec..58b7da45 100755 --- a/refstack/cli/refstack +++ b/refstack/cli/refstack @@ -35,12 +35,14 @@ def add(args): outputs confirmation along with the id of the cloud that was just added. endpoint is a unique key so you only get to add one record per end point""" try: - cloud = Cloud(args.endpoint, - args.test_user, - args.test_key, - args.admin_endpoint, - args.admin_user, - args.admin_key) + cloud = Cloud() + + cloud.endpoint = args.endpoint + cloud.test_user = args.test_user + cloud.test_key = args.test_key + cloud.admin_endpoint = args.admin_endpoint + cloud.admin_user = args.admin_user + cloud.admin_key = args.admin_key db.add(cloud) db.commit()