[libvirt] [glib PATCH 04/16] config-demo: Use octal when setting mode

Fabiano Fidêncio fidencio at redhat.com
Mon May 20 08:31:50 UTC 2019


Basically, just change 0744 to 0o744 in order to be compatible with
python3.

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 examples/config-demo.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/config-demo.py b/examples/config-demo.py
index de1db74..506afb9 100644
--- a/examples/config-demo.py
+++ b/examples/config-demo.py
@@ -87,7 +87,7 @@ pool.set_source(pool_source)
 perms = LibvirtGConfig.StoragePermissions.new()
 perms.set_owner(1001)
 perms.set_group(1005)
-perms.set_mode(0744)
+perms.set_mode(0o744)
 perms.set_label("virt_image_t")
 
 pool_target = LibvirtGConfig.StoragePoolTarget.new()
-- 
2.21.0




More information about the libvir-list mailing list