[meta-virtualization] [meta-cloud-services][PATCH] identity.bbclass: Enforce octal literal representation in os.chmod
Adrian Dudau
adrian.dudau at enea.com
Mon Sep 19 01:09:37 PDT 2016
Python 3 changed to the explicit representation and throws errors
otherwise.
Signed-off-by: Adrian Dudau <adrian.dudau at enea.com>
---
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
--
1.9.1
More information about the meta-virtualization
mailing list