steve linabery
2008-Apr-29 15:24 UTC
[Ovirt-devel] [PATCH] fix attribute in grant_admin_privileges
Hi Ovirt, Had to use grant_admin_privileges last night and noticed it was using an old attribute name. Thanks, Steve -------------- next part -------------- A non-text attachment was scrubbed... Name: fix-grant_admin_privileges.patch Type: text/x-patch Size: 528 bytes Desc: not available URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20080429/b38129d1/attachment.bin>
Hugh O. Brock
2008-Apr-29 15:34 UTC
[Ovirt-devel] [PATCH] fix attribute in grant_admin_privileges
On Tue, Apr 29, 2008 at 10:24:47AM -0500, steve linabery wrote:> Hi Ovirt, > > Had to use grant_admin_privileges last night and noticed it was using > an old attribute name. > > Thanks, > Steve> diff --git a/wui/src/script/grant_admin_privileges b/wui/src/script/grant_admin_privileges > index 7729ac7..77ef359 100755 > --- a/wui/src/script/grant_admin_privileges > +++ b/wui/src/script/grant_admin_privileges > @@ -6,7 +6,7 @@ require 'active_record_env' > > $hwpool = HardwarePool.get_default_pool > if $hwpool > - Permission.new( { :role => Permission::ROLE_SUPER_ADMIN, > + Permission.new( { :user_role => Permission::ROLE_SUPER_ADMIN, > :user => ARGV[0], > :pool_id => $hwpool.id}).save > endAhh yeah that would be a problem, wouldn't it? ACK --Hugh