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. 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""" endpoint is a unique key so you only get to add one record per end point"""
try: try:
cloud = Cloud(args.endpoint, cloud = Cloud()
args.test_user,
args.test_key, cloud.endpoint = args.endpoint
args.admin_endpoint, cloud.test_user = args.test_user
args.admin_user, cloud.test_key = args.test_key
args.admin_key) cloud.admin_endpoint = args.admin_endpoint
cloud.admin_user = args.admin_user
cloud.admin_key = args.admin_key
db.add(cloud) db.add(cloud)
db.commit() db.commit()