Report error if dirs `/data/user` `/data/scratch` are not created.
Compare changes
+ 20
− 10
@@ -19,7 +20,9 @@ def dir_verify(ch, method, properties, body):
@@ -19,7 +20,9 @@ def dir_verify(ch, method, properties, body):
@@ -30,17 +33,24 @@ def dir_verify(ch, method, properties, body):
@@ -30,17 +33,24 @@ def dir_verify(ch, method, properties, body):
use
append
maybe? otherwise theerrmsg
will be overwritten.but
errmsg
is string, so maybe use+=
to concatenate error message(s)Created by: eesaanatluri
Yes, it would be overwritten but with latest data i.e, the last msg will contain all the missing dirs. So we are not missing the data here. I think it is correct. I tested it on console with an example as well.