Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/fog/proxmox/identity/models/group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/fog/proxmox/identity/models/token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/proxmox/identity/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down