[libvirt] [PATCH] virsh: Report name from edited object

Eric Blake eblake at redhat.com
Thu Jun 14 12:57:00 UTC 2012


On 06/14/2012 06:50 AM, Michal Privoznik wrote:
> There is a little easter egg in virsh: one can easily clone
> an object (domain, network, ...). Just 'virsh edit' change the name
> and remove <uuid>. And then, in the end when reporting success
> the new name was printed out.
> However, with recent edit rewrite we lost the final part and are
> still printing the original name out.
> ---
> Or even better - if name changes, we can choose better message,
> something like "New domain %s defined". But I am not sure
> we want to expose this easter egg to users.

Yeah, I ran into some of that fun when implementing snapshot-edit.

I think your patch goes far enough; printing the final name is good
enough, without having to try and produce a smarter output message.

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120614/33f82e65/attachment-0001.sig>


More information about the libvir-list mailing list