Skip to content

Commit

Permalink
virt.libvirt_vm: Fix disk cache option
Browse files Browse the repository at this point in the history
We were not reflecting the present of the cache
option on the virt-install command.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
  • Loading branch information
phrdina authored and lmr committed Feb 28, 2012
1 parent 72444e0 commit b6bb711
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/virt/libvirt_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,8 @@ def add_drive(help, filename, pool=None, vol=None, device=None,
cmd += ",sparse=false"
if format:
cmd += ",format=%s" % format
if cache:
cmd += ",cache=%s" % cache
return cmd

def add_floppy(help, filename):
Expand Down

0 comments on commit b6bb711

Please sign in to comment.