mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 18:08:42 -05:00
Merge pull request #303 from mattkirby/sync_pool_sizes
(POOLER-132) Sync pool size on dashboard start
This commit is contained in:
commit
ece0e64331
3 changed files with 8 additions and 4 deletions
|
|
@ -12,6 +12,9 @@ If you're looking for changes from before this, refer to the project's
|
||||||
git logs & PR history.
|
git logs & PR history.
|
||||||
# [Unreleased](https://github.com/puppetlabs/vmpooler/compare/0.2.2...master)
|
# [Unreleased](https://github.com/puppetlabs/vmpooler/compare/0.2.2...master)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Sync pool size before dashboard is displayed (POOLER-132)
|
||||||
|
|
||||||
# [0.2.2](https://github.com/puppetlabs/vmpooler/compare/0.2.1...0.2.2)
|
# [0.2.2](https://github.com/puppetlabs/vmpooler/compare/0.2.1...0.2.2)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
||||||
|
|
@ -14,10 +14,6 @@ module Vmpooler
|
||||||
JSON.pretty_generate(result)
|
JSON.pretty_generate(result)
|
||||||
end
|
end
|
||||||
|
|
||||||
get '/' do
|
|
||||||
redirect to('/dashboard/')
|
|
||||||
end
|
|
||||||
|
|
||||||
# Load dashboard components
|
# Load dashboard components
|
||||||
begin
|
begin
|
||||||
require 'dashboard'
|
require 'dashboard'
|
||||||
|
|
|
||||||
|
|
@ -211,6 +211,11 @@ module Vmpooler
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
get '/' do
|
||||||
|
sync_pool_sizes
|
||||||
|
redirect to('/dashboard/')
|
||||||
|
end
|
||||||
|
|
||||||
# Provide run-time statistics
|
# Provide run-time statistics
|
||||||
#
|
#
|
||||||
# Example:
|
# Example:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue