diff --git a/lib/fog/proxmox/identity/models/group.rb b/lib/fog/proxmox/identity/models/group.rb index c54f65b..f148365 100644 --- a/lib/fog/proxmox/identity/models/group.rb +++ b/lib/fog/proxmox/identity/models/group.rb @@ -28,7 +28,7 @@ class Group < Fog::Model attribute :members def save(options = {}) - service.create_group((attributes.reject { |attribute| %i[users members].include? attribute }).merge(options)) + service.create_group(attributes.reject { |attribute| %i[users members].include? attribute }.merge(options)) reload end diff --git a/lib/fog/proxmox/identity/models/token.rb b/lib/fog/proxmox/identity/models/token.rb index aa76ec0..a929db0 100644 --- a/lib/fog/proxmox/identity/models/token.rb +++ b/lib/fog/proxmox/identity/models/token.rb @@ -42,7 +42,7 @@ def initialize(new_attributes = {}) def save(options = {}) requires :tokenid, :userid - token_hash = (attributes.reject { |attribute| %i[userid tokenid info].include? attribute }).merge(options) + token_hash = attributes.reject { |attribute| %i[userid tokenid info].include? attribute }.merge(options) service.create_token(userid, tokenid, token_hash) reload end diff --git a/lib/fog/proxmox/identity/models/user.rb b/lib/fog/proxmox/identity/models/user.rb index 25297aa..ba801eb 100644 --- a/lib/fog/proxmox/identity/models/user.rb +++ b/lib/fog/proxmox/identity/models/user.rb @@ -45,7 +45,7 @@ def initialize(new_attributes = {}) end def save(options = {}) - service.create_user((attributes.reject { |attribute| [:tokens].include? attribute }).merge(options)) + service.create_user(attributes.reject { |attribute| [:tokens].include? attribute }.merge(options)) reload end