On Thu, Jun 28, 2018 at 05:06:20PM +0100, Daniel P. Berrangé wrote: > On Thu, Jun 28, 2018 at 09:42:18AM -0500, Eric Blake wrote: > > Does it make sense to forbid this operation on servers (since it only makes > > sense for clients)? > > We can't validate that here, because we can't guarantee that 'endpoint' > is set before 'username' is set. > > > We could enforce it in the setter for the "loaded" property as that is > set only after every other property is set.
As far as I can see we could only warn here, since the set_loaded function returns void. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top