diff --git a/lib/nexpose/role.rb b/lib/nexpose/role.rb index 2c60f91d..40adda38 100644 --- a/lib/nexpose/role.rb +++ b/lib/nexpose/role.rb @@ -132,7 +132,7 @@ class Role < RoleSummary # Flag determines behavior of #save method. attr_accessor :existing - def initialize(name, full_name, id, enabled = true, scope = Scope::SILO) + def initialize(name, full_name, id = -1, enabled = true, scope = Scope::SILO) @name, @full_name, @id, @enabled, @scope = name, full_name, id, enabled, scope @privileges = [] end