diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2008-06-06 01:08:45 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2008-06-06 01:08:45 +0000 |
commit | ed14876f30618086adfcfc1d04322086a521c4db (patch) | |
tree | 353f028992ffe28e03f1c463c30e38c0a753fa85 | |
parent | Provide nice error for trying to find bugs with no default zilla defined. (diff) | |
download | rbot-bugzilla-ed14876f30618086adfcfc1d04322086a521c4db.tar.gz rbot-bugzilla-ed14876f30618086adfcfc1d04322086a521c4db.tar.bz2 rbot-bugzilla-ed14876f30618086adfcfc1d04322086a521c4db.zip |
Relax the validation a bit for defaults.
-rw-r--r-- | bugzilla.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bugzilla.rb b/bugzilla.rb index 48e89ad..cfce82f 100644 --- a/bugzilla.rb +++ b/bugzilla.rb @@ -863,8 +863,10 @@ plugin.map 'zilla instance show :zilla :full', plugin.map 'zilla default set :channel :zilla :eavesdrop', :action => 'channel_defaults_set', :requirements => { - :channel => /^[^\/][^ ]+[^\/]$|^\/#[^ ]+\/$/, - :zilla => /^[^ ]+$/ + #:channel => /^[^\/][^ ]+[^\/]$|^\/#[^ ]+\/$/, + :channel => /^[^ ]+$/, + :zilla => /^[^ ]+$/, + :eavesdrop => /^(?:on|off)$/, }, :defaults => { :eavesdrop => "off" }, :auth_path => 'modify' @@ -872,7 +874,7 @@ plugin.map 'zilla default set :channel :zilla :eavesdrop', plugin.map 'zilla default unset :channel', :action => 'channel_defaults_unset', :requirements => { - :channel => /^[^\/][^ ]+[^\/]$|^\/#[^ ]+\/$/, + #:channel => /^[^\/][^ ]+[^\/]$|^\/#[^ ]+\/$/, }, :auth_path => 'modify' |