From 295044e95a11ff3e4fced4352643d896a08737f0 Mon Sep 17 00:00:00 2001 From: David Lenwell Date: Sat, 2 Nov 2013 14:55:12 -0700 Subject: [PATCH] fixed lack of init --- refstack/cli/refstack | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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()