diff mbox series

[OSSTEST,v2,2/2] host props/flags: Save for commissioning flights too

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

Commit Message

Ian Jackson March 31, 2020, 4:43 p.m. UTC
Obviously we want this!

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 Osstest.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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";
 }