diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2016-09-19 10:09:37 +0200 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2016-09-19 16:04:22 -0400 |
commit | 7e2df5146653d98747e13c0810cebc21f85272ad (patch) | |
tree | 64a5e0c8bce6ba2f67d332ba400dda2e35969345 | |
parent | 10a219245e4a68054c93c86bd42483d801d22dca (diff) | |
download | meta-cloud-services-7e2df5146653d98747e13c0810cebc21f85272ad.tar.gz |
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 <adrian.dudau@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r-- | meta-openstack/classes/monitor.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
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): | |||
19 | for check in mon_checks.split(): | 19 | for check in mon_checks.split(): |
20 | if os.path.exists(src + "/" + check): | 20 | if os.path.exists(src + "/" + check): |
21 | shutil.copy(src + "/" + check, dest) | 21 | shutil.copy(src + "/" + check, dest) |
22 | os.chmod(dest + "/" + check, 0755) | 22 | os.chmod(dest + "/" + check, 0o755) |
23 | |||
23 | 24 | ||
24 | python do_monitor_install() { | 25 | python do_monitor_install() { |
25 | import shutil | 26 | import shutil |