diff --git a/instances/views.py b/instances/views.py index 3262d2a..ecea01b 100644 --- a/instances/views.py +++ b/instances/views.py @@ -476,11 +476,7 @@ def instance(request, compute_id, vname): path = connCreate.create_volume(storage, name, size, format, meta_prealloc, default_owner) conn.attach_disk(path, target, subdriver=format, cache=cache, targetbus=bus) -<<<<<<< HEAD - msg = _('Attach new disk: ' + target) -======= msg = _('Attach new disk {} ({})'.format(name, format)) ->>>>>>> 13ce824... wvmStorage.create_volume, wvmCreate.create_volume image naming respects image/volume format (qcow,qcow2) addlogmsg(request.user.username, instance.name, msg) return HttpResponseRedirect(request.get_full_path() + '#disks') diff --git a/vrtManager/instance.py b/vrtManager/instance.py index 1984195..49d6419 100644 --- a/vrtManager/instance.py +++ b/vrtManager/instance.py @@ -871,18 +871,19 @@ class wvmInstance(wvmConnect): 0 + + %s + %s + 0644 + + + 1.1 + + + - - %s - %s - 0644 - - - 1.1 - - - """ % (target_file, vol_format, owner['uid'], owner['guid']) + stg = vol.storagePoolLookupByVolume() stg.createXMLFrom(vol_clone_xml, vol, meta_prealloc)