Return a 'domain' JSON key if configured

This commit is contained in:
Scott Schneider 2014-08-29 11:38:06 -07:00
parent e516ddc0b0
commit 5ed2756628

View file

@ -221,6 +221,10 @@ module Vmpooler
result['ok'] = false
end
if ( result['ok'] and $config[:config]['domain'] )
result['domain'] = $config[:config]['domain']
end
JSON.pretty_generate(result)
end
@ -285,6 +289,10 @@ module Vmpooler
result['ok'] = false
end
if ( result['ok'] and $config[:config]['domain'] )
result['domain'] = $config[:config]['domain']
end
JSON.pretty_generate(result)
end