clone: Pass proper connection object to virtinst support function

This commit is contained in:
Cole Robinson 2009-11-16 07:05:38 -05:00
parent 2350a70b58
commit d2cd4e06c5
1 changed files with 1 additions and 1 deletions

View File

@ -789,7 +789,7 @@ def can_we_clone(conn, vol, path):
elif vol: elif vol:
# Managed storage # Managed storage
if not virtinst.Storage.is_create_vol_from_supported(conn): if not virtinst.Storage.is_create_vol_from_supported(conn.vmm):
if conn.is_remote() or not os.access(path, os.R_OK): if conn.is_remote() or not os.access(path, os.R_OK):
msg = _("Connection does not support managed storage cloning.") msg = _("Connection does not support managed storage cloning.")
else: else: