Allon Mureinik has posted comments on this change. Change subject: core: Refactor InternalMigrateVmCommand#canMigrateVm ......................................................................
Patch Set 1: I would prefer that you didn't submit this This code is redundent. super.canMigrateVM already checks the MigrationStatus, unless you have forceMigrate=true. But the only place that creates an InternalMigrateCommand sends forceMigrate=false. I'd make InternalMigrateCommand force that forceMigrate=false (perhaps by extending the parameter class?), and then you don't need all of the double checking here. -- To view, visit http://gerrit.ovirt.org/10107 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ida10d53ccd5321d3ccc510bd2111fa013dcdcdbe Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Arik Hadas <[email protected]> Gerrit-Reviewer: Allon Mureinik <[email protected]> Gerrit-Reviewer: Arik Hadas <[email protected]> Gerrit-Reviewer: Omer Frenkel <[email protected]> Gerrit-Reviewer: Roy Golan <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
