Module: HammerCLIForemanRemoteExecution::InterfaceExtensionsList
- Included in:
- HammerCLIForemanRemoteExecution
- Defined in:
- lib/hammer_cli_foreman_remote_execution/interface_extensions.rb
Instance Method Summary collapse
Instance Method Details
#format_type(nic) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/hammer_cli_foreman_remote_execution/interface_extensions.rb', line 15 def format_type(nic) type = super(nic) if nic['execution'] if nic['primary'] || nic['provision'] type[-1] = ', '+_('execution') +')' else type += ' ('+_('execution') +')' end end type end |