mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Return a 'domain' JSON key if configured
This commit is contained in:
parent
e516ddc0b0
commit
5ed2756628
1 changed files with 8 additions and 0 deletions
|
|
@ -221,6 +221,10 @@ module Vmpooler
|
||||||
result['ok'] = false
|
result['ok'] = false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if ( result['ok'] and $config[:config]['domain'] )
|
||||||
|
result['domain'] = $config[:config]['domain']
|
||||||
|
end
|
||||||
|
|
||||||
JSON.pretty_generate(result)
|
JSON.pretty_generate(result)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -285,6 +289,10 @@ module Vmpooler
|
||||||
result['ok'] = false
|
result['ok'] = false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if ( result['ok'] and $config[:config]['domain'] )
|
||||||
|
result['domain'] = $config[:config]['domain']
|
||||||
|
end
|
||||||
|
|
||||||
JSON.pretty_generate(result)
|
JSON.pretty_generate(result)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue