Method: JSS::Scopable#update

Defined in:
lib/jss-api/api_object/scopable.rb

#updateObject

A wrapper around the update method, to try catching RestClient::Conflict 409 errors when we couldn’t verify all ldap users/groups due to lack of ldap connections



119
120
121
122
123
124
125
126
127
128
129
130
131
# File 'lib/jss-api/api_object/scopable.rb', line 119

def update
  begin
    super
    
  rescue RestClient::Conflict => conflict
    if  self.scope.unable_to_verify_ldap_entries == true
      raise JSS::InvalidDataError, "Potentially non-existant LDAP user or group in new scope values."
    else
      raise conflict
    end
    
  end # begin
end