mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Merge branch 'master' into name_change
Conflicts: vmpooler-api
This commit is contained in:
commit
2935a5ae67
1 changed files with 7 additions and 7 deletions
14
vmpooler-api
14
vmpooler-api
|
|
@ -38,7 +38,7 @@ get '/' do
|
|||
}
|
||||
end
|
||||
|
||||
get '/dashboard/stats/vmpooler/numbers' do
|
||||
get '/dashboard/stats/vmpooler/numbers/?' do
|
||||
result = Hash.new
|
||||
result['pending'] = 0
|
||||
result['cloning'] = 0
|
||||
|
|
@ -63,7 +63,7 @@ get '/dashboard/stats/vmpooler/numbers' do
|
|||
JSON.pretty_generate(result)
|
||||
end
|
||||
|
||||
get '/dashboard/stats/vmpooler/pool' do
|
||||
get '/dashboard/stats/vmpooler/pool/?' do
|
||||
result = Hash.new
|
||||
|
||||
$config[:pools].each do |pool|
|
||||
|
|
@ -115,7 +115,7 @@ get '/dashboard/stats/vmpooler/pool' do
|
|||
JSON.pretty_generate(result)
|
||||
end
|
||||
|
||||
get '/dashboard/stats/vmpooler/running' do
|
||||
get '/dashboard/stats/vmpooler/running/?' do
|
||||
result = Hash.new
|
||||
|
||||
$config[:pools].each do |pool|
|
||||
|
|
@ -164,7 +164,7 @@ get '/dashboard/stats/vmpooler/running' do
|
|||
JSON.pretty_generate(result)
|
||||
end
|
||||
|
||||
get '/vm' do
|
||||
get '/vm/?' do
|
||||
content_type :json
|
||||
|
||||
result = []
|
||||
|
|
@ -176,7 +176,7 @@ get '/vm' do
|
|||
JSON.pretty_generate(result)
|
||||
end
|
||||
|
||||
get '/vm/:template' do
|
||||
get '/vm/:template/?' do
|
||||
content_type :json
|
||||
|
||||
result = {}
|
||||
|
|
@ -186,7 +186,7 @@ get '/vm/:template' do
|
|||
JSON.pretty_generate(result)
|
||||
end
|
||||
|
||||
post '/vm/:template' do
|
||||
post '/vm/:template/?' do
|
||||
content_type :json
|
||||
|
||||
result = {}
|
||||
|
|
@ -211,7 +211,7 @@ post '/vm/:template' do
|
|||
JSON.pretty_generate(result)
|
||||
end
|
||||
|
||||
delete '/vm/:hostname' do
|
||||
delete '/vm/:hostname/?' do
|
||||
content_type :json
|
||||
|
||||
result = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue