Scott Seago
2009-Apr-22 17:21 UTC
[Ovirt-devel] [PATCH server] fixed attribute bug in grant_admin_privileges
Signed-off-by: Scott Seago <sseago at redhat.com> --- src/script/grant_admin_privileges | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/script/grant_admin_privileges b/src/script/grant_admin_privileges index 231b1f8..cdf36e7 100755 --- a/src/script/grant_admin_privileges +++ b/src/script/grant_admin_privileges @@ -14,7 +14,7 @@ ActiveLdap::Base.establish_connection :base => base, :host => host, :try_sasl => if Account.exists?("uid=#{uid}") puts "Creating an admin account for #{uid}..." $pool = DirectoryPool.get_directory_root - permission = Permission.new(:user_role => Role.find_by_name(Role::SUPER_ADMIN).id, + permission = Permission.new(:role_id => Role.find_by_name(Role::SUPER_ADMIN).id, :uid => uid, :pool_id => $pool.id) permission.save_with_new_children -- 1.6.0.6
Joey Boggs
2009-Apr-22 17:23 UTC
[Ovirt-devel] [PATCH server] fixed attribute bug in grant_admin_privileges
ack Scott Seago wrote:> Signed-off-by: Scott Seago <sseago at redhat.com> > --- > src/script/grant_admin_privileges | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/src/script/grant_admin_privileges b/src/script/grant_admin_privileges > index 231b1f8..cdf36e7 100755 > --- a/src/script/grant_admin_privileges > +++ b/src/script/grant_admin_privileges > @@ -14,7 +14,7 @@ ActiveLdap::Base.establish_connection :base => base, :host => host, :try_sasl => > if Account.exists?("uid=#{uid}") > puts "Creating an admin account for #{uid}..." > $pool = DirectoryPool.get_directory_root > - permission = Permission.new(:user_role => Role.find_by_name(Role::SUPER_ADMIN).id, > + permission = Permission.new(:role_id => Role.find_by_name(Role::SUPER_ADMIN).id, > :uid => uid, > :pool_id => $pool.id) > permission.save_with_new_children >