[pkg-eucalyptus-commits] [SCM] managing cloud instances for Eucalyptus branch, experimental, updated. debian/2.1.1-1_experimental1-51-g95835b7

Garrett Holmstrom gholms at fedoraproject.org
Thu Jan 3 11:06:11 UTC 2013


The following commit has been merged in the experimental branch:
commit 97495528e6f5b345ffff9e9030e56ec4472a7143
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date:   Fri Nov 2 14:07:53 2012 -0700

    Add DelegateAccount to euare-(group|user)addpolicy
    
    euare-useraddpolicy and euare-groupaddpolicy lacked the
    eucalyptus-admin-only "--delegate" option, so this commit adds it to
    them.
    
    Fixes TOOLS-138

diff --git a/euca2ools/commands/euare/addgrouppolicy.py b/euca2ools/commands/euare/addgrouppolicy.py
index 5dac871..b9274af 100644
--- a/euca2ools/commands/euare/addgrouppolicy.py
+++ b/euca2ools/commands/euare/addgrouppolicy.py
@@ -85,7 +85,13 @@ class AddGroupPolicy(AWSQueryRequest):
               long_name='output',
               ptype='boolean',
               optional=True,
-              doc='Causes the output to include the JSON policy document created for you')]
+              doc='Causes the output to include the JSON policy document created for you'),
+        Param(name='DelegateAccount',
+              short_name=None,
+              long_name='delegate',
+              ptype='string',
+              optional=True,
+              doc="""[Eucalyptus extension] Process this command as if the administrator of the specified account had run it. This option is only usable by cloud administrators.""")]
 
     def build_policy(self):
         s = '{"Effect":"%s", "Action":["%s"], "Resource":["%s"]}' % (self.effect,
diff --git a/euca2ools/commands/euare/adduserpolicy.py b/euca2ools/commands/euare/adduserpolicy.py
index f17d8f3..18ebb58 100644
--- a/euca2ools/commands/euare/adduserpolicy.py
+++ b/euca2ools/commands/euare/adduserpolicy.py
@@ -85,7 +85,13 @@ class AddUserPolicy(AWSQueryRequest):
               long_name='output',
               ptype='boolean',
               optional=True,
-              doc='Causes the output to include the JSON policy document created for you')]
+              doc='Causes the output to include the JSON policy document created for you'),
+        Param(name='DelegateAccount',
+              short_name=None,
+              long_name='delegate',
+              ptype='string',
+              optional=True,
+              doc="""[Eucalyptus extension] Process this command as if the administrator of the specified account had run it. This option is only usable by cloud administrators.""")]
 
     def build_policy(self):
         s = '{"Effect":"%s", "Action":["%s"], "Resource":["%s"]}' % (self.effect,

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list