diff --git a/ChangeLog b/ChangeLog index 4dbc5dad1b..9d516014cb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue May 19 09:04:05 EDT 2009 Cole Robinson + + * src/virsh.c: Don't validate disk type in virsh attach-disk + Tue May 19 09:00:43 EDT 2009 Cole Robinson * python/libvir.py: Don't overwrite legitimate python import error. diff --git a/src/virsh.c b/src/virsh.c index ce90d3d856..865b6e5319 100644 --- a/src/virsh.c +++ b/src/virsh.c @@ -5509,13 +5509,6 @@ cmdAttachDisk(vshControl *ctl, const vshCmd *cmd) type = vshCommandOptString(cmd, "type", NULL); mode = vshCommandOptString(cmd, "mode", NULL); - if (type) { - if (STRNEQ(type, "cdrom") && STRNEQ(type, "disk")) { - vshError(ctl, FALSE, _("No support %s in command 'attach-disk'"), type); - goto cleanup; - } - } - if (driver) { if (STREQ(driver, "file") || STREQ(driver, "tap")) { isFile = 1;