diff --git a/lib/vmpooler/api.rb b/lib/vmpooler/api.rb index dd1cfb7..3a38fd8 100644 --- a/lib/vmpooler/api.rb +++ b/lib/vmpooler/api.rb @@ -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