Class: ForemanNetbox::SyncHost::SyncVirtualMachine::SyncInterfaces::Find
- Inherits:
-
Object
- Object
- ForemanNetbox::SyncHost::SyncVirtualMachine::SyncInterfaces::Find
- Includes:
- Interactor
- Defined in:
- app/interactors/foreman_netbox/sync_host/sync_virtual_machine/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_virtual_machine/sync_interfaces/find.rb', line 10 def call context.interfaces = ForemanNetbox::API.client.virtualization.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 |