mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Merge pull request #35 from sschneid/allow_delete_fqdn
Allow host FQDN in DELETE
This commit is contained in:
commit
dd030661e0
1 changed files with 4 additions and 0 deletions
|
|
@ -303,6 +303,10 @@ module Vmpooler
|
|||
|
||||
result['ok'] = false
|
||||
|
||||
if ( $config[:config]['domain'] and params[:hostname] =~ /^\w+\.#{$config[:config]['domain']}$/ )
|
||||
params[:hostname] = params[:hostname][/[^\.]+/]
|
||||
end
|
||||
|
||||
$config[:pools].each do |pool|
|
||||
if $redis.sismember('vmpooler__running__'+pool['name'], params[:hostname])
|
||||
$redis.srem('vmpooler__running__'+pool['name'], params[:hostname])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue