mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
(maint) Fix up nspooler list active bug
If no reason is defined for checking out a nspooler VM we'd get a nil refrence error message when listing active nspooler VMs. This PR fixes that.
This commit is contained in:
parent
ecf8925775
commit
5793ea78b9
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