Class: ForemanNetbox::SyncHost::SyncDevice::SyncInterfaces::Find
- Inherits:
-
Object
- Object
- ForemanNetbox::SyncHost::SyncDevice::SyncInterfaces::Find
- Includes:
- Interactor
- Defined in:
- app/interactors/foreman_netbox/sync_host/sync_device/sync_interfaces/find.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 |
# File 'app/interactors/foreman_netbox/sync_host/sync_device/sync_interfaces/find.rb', line 10 def call context.interfaces = ForemanNetbox::API.client.dcim.interfaces.filter(params) rescue NetboxClientRuby::LocalError, NetboxClientRuby::ClientError, NetboxClientRuby::RemoteError => e ::Foreman::Logging.logger('foreman_netbox/import').error("#{self.class} error #{e}: #{e.backtrace}") context.fail!(error: "#{self.class}: #{e}") end |