fixed lack of init

This commit is contained in:
David Lenwell 2013-11-02 14:55:12 -07:00
parent b7027853d1
commit 295044e95a

View File

@ -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()