Message ID | 20200331164318.4651-2-ian.jackson@eu.citrix.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [OSSTEST,v2,1/2] host props/flags: Break out blessing_must_not_modify_host | expand |
diff --git a/Osstest.pm b/Osstest.pm index 54f0085c..1e381d8f 100644 --- a/Osstest.pm +++ b/Osstest.pm @@ -411,7 +411,7 @@ sub blessing_must_not_modify_host ($) { # returns '' (falseish) if we may modify a host's props etc., # or a trueish string message if may not my ($intended_blessing) = @_; - return '' if $intended_blessing eq "real"; + return '' if $intended_blessing =~ qr{^real$|^commission-}; return "intended blessing $intended_blessing != real"; }
Obviously we want this! Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> --- Osstest.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)