mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 13:28:42 -05:00
Merge pull request #154 from cthorn42/maint/main/fix_nspooler_list_active_nil_error
(maint) Fix up nspooler list active bug
This commit is contained in:
commit
1b64ce3b03
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ class Utils
|
|||
when 'NonstandardPooler'
|
||||
line = "- #{host_data['fqdn']} (#{host_data['os_triple']}"
|
||||
line += ", #{host_data['hours_left_on_reservation']}h remaining"
|
||||
line += ", reason: #{host_data['reserved_for_reason']}" unless host_data['reserved_for_reason'].empty?
|
||||
line += ", reason: #{host_data['reserved_for_reason']}" unless host_data['reserved_for_reason'].nil? || host_data['reserved_for_reason'].empty?
|
||||
line += ')'
|
||||
output_target.puts line
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue