Fixing resources
diff --git a/_states/gerrit.py b/_states/gerrit.py
index c869d6e..ebd9c6d 100644
--- a/_states/gerrit.py
+++ b/_states/gerrit.py
@@ -47,8 +47,10 @@
account = __salt__['gerrit.account_get'](name, **kwargs)
if 'Error' not in account:
- #update account
- pass
+ # Update account
+ __salt__['gerrit.account_update'](name, fullname, email, active, groups, ssh_key, http_password, **kwargs)
+ ret['comment'] = 'Account "{0}" has been updated'.format(name)
+ ret['changes']['Account'] = 'Updated'
else:
# Create account
__salt__['gerrit.account_create'](name, fullname, email, active, groups, ssh_key, http_password, **kwargs)
@@ -72,7 +74,7 @@
group = __salt__['gerrit.group_get'](name, **kwargs)
if 'Error' not in group:
- #update group
+ # Update group
pass
else:
# Create group