mirror of https://git.48k.eu/ogclient
Change permissions on virtual images for /refresh
Write permission is not needed to get information about each virtual drive so this patch changes permissions to 'only read'. This can prevent race conditions.more_events
parent
ff988b80b5
commit
b63bd727f9
|
@ -268,7 +268,7 @@ class OgVirtualOperations:
|
|||
g = guestfs.GuestFS(python_return_dict=True)
|
||||
g.add_drive_opts(part['virt-drive'],
|
||||
format="qcow2",
|
||||
readonly=0)
|
||||
readonly=1)
|
||||
g.launch()
|
||||
devices = g.list_devices()
|
||||
assert(len(devices) == 1)
|
||||
|
|
Loading…
Reference in New Issue