[pkg-eucalyptus-commits] [SCM] managing cloud instances for Eucalyptus branch, master, updated. 3.0.0-alpha3-257-g1da8e3a

dkavanagh dkavanagh at gmail.com
Sun Jun 16 02:30:42 UTC 2013


The following commit has been merged in the master branch:
commit 3682d99a2b04ff5a7e70a6288900beebf7651690
Author: dkavanagh <dkavanagh at gmail.com>
Date:   Tue Mar 19 13:23:49 2013 -0400

    TOOLS-282
    switched to look at account alias

diff --git a/euca2ools/commands/eustore/installimage.py b/euca2ools/commands/eustore/installimage.py
index de877aa..0b2347e 100644
--- a/euca2ools/commands/eustore/installimage.py
+++ b/euca2ools/commands/eustore/installimage.py
@@ -351,8 +351,8 @@ class InstallImage(AWSQueryRequest):
                     aws_secret_access_key=euare_svc.args['aws_secret_access_key'],\
                     port=euare_svc.args['port'], path=euare_svc.args['path'],\
                     is_secure=euare_svc.args['is_secure'])
-        userinfo  = conn.get_user().arn.split(':')
-        if not(userinfo[4]=='eucalyptus') and not(self.cli_options.kernel):
+        aliases = conn.get_account_alias()
+        if not(aliases.list_account_aliases_result.account_aliases[0]=='eucalyptus') and not(self.cli_options.kernel):
             print >> sys.stderr, "Error: must be cloud admin to upload kernel/ramdisk. try specifying existing ones with --kernel and --ramdisk"
             sys.exit(-1)
         self.eustore_url = self.ServiceClass.StoreBaseURL

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list