summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorRussell Bryant <russell@ovn.org>2016-01-06 15:16:10 -0500
committerRussell Bryant <russell@ovn.org>2016-01-20 16:45:06 -0500
commit56ec061192e3fe1590fe9e36e55080284d73f238 (patch)
treedf3a71f8f1a53aa0822e0dc782fde1367462c4b8 /debian
parentb3ac29477d493d9442f39c734a0a9ebaa223c308 (diff)
downloadopenvswitch-56ec061192e3fe1590fe9e36e55080284d73f238.tar.gz
python: Fix octal compatibility.
Octal constants must be written as 0o077 instead of 0077 to be compatible with both Python 2 and 3. Signed-off-by: Russell Bryant <russell@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/ovs-monitor-ipsec2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/ovs-monitor-ipsec b/debian/ovs-monitor-ipsec
index 22883fcae..0f39191a8 100755
--- a/debian/ovs-monitor-ipsec
+++ b/debian/ovs-monitor-ipsec
@@ -163,7 +163,7 @@ path certificate "%s";
conf_file.close()
# Rewrite the pre-shared keys file; it must only be readable by root.
- orig_umask = os.umask(0077)
+ orig_umask = os.umask(0o077)
psk_file = open(root_prefix + Racoon.psk_file, 'w')
os.umask(orig_umask)