After successfull virDomainSave/virDomainManagedSave calls
the guest will no longer be active, so the domain ID must
be reset to -1
* daemon/remote_generator.pl: Special case virDomainSave &
virDomainManagedSave for same reason as virDomainDestroy
print "\n";
}
- if ($call->{ProcName} eq "DomainDestroy") {
- # SPECIAL: virDomainDestroy needs to reset the domain id explicitly
+ if ($call->{ProcName} eq "DomainDestroy" ||
+ $call->{ProcName} eq "DomainSave" ||
+ $call->{ProcName} eq "DomainManagedSave") {
+ # SPECIAL: virDomain{Destroy|Save|ManagedSave} need to reset
+ # the domain id explicitly on success
print " dom->id = -1;\n";
}