From 7e2df5146653d98747e13c0810cebc21f85272ad Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Mon, 19 Sep 2016 10:09:37 +0200 Subject: identity.bbclass: Enforce octal literal representation in os.chmod Python 3 changed to the explicit representation and throws errors otherwise. Signed-off-by: Adrian Dudau Signed-off-by: Bruce Ashfield --- meta-openstack/classes/monitor.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta-openstack/classes/monitor.bbclass b/meta-openstack/classes/monitor.bbclass index 83aaea2..a959f09 100644 --- a/meta-openstack/classes/monitor.bbclass +++ b/meta-openstack/classes/monitor.bbclass @@ -19,7 +19,8 @@ def copy_check_files(d, check_var_name, src, dest): for check in mon_checks.split(): if os.path.exists(src + "/" + check): shutil.copy(src + "/" + check, dest) - os.chmod(dest + "/" + check, 0755) + os.chmod(dest + "/" + check, 0o755) + python do_monitor_install() { import shutil -- cgit v1.2.3-54-g00ecf