cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [1/2] git commit: updated refs/heads/master to 8a99df7
Date Tue, 23 Jun 2015 21:27:23 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 82ecc1aa0 -> 8a99df77b


findbugs: move assert to a place where it still makes sense

Signed-off-by: Daan Hoogland <daan@onecht.net>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/e8984d16
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/e8984d16
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/e8984d16

Branch: refs/heads/master
Commit: e8984d16ed2e77fc93d94ef6a3a27bceccee371b
Parents: 82ecc1a
Author: Daan Hoogland <daan@onecht.net>
Authored: Tue Jun 23 22:21:29 2015 +0200
Committer: Daan Hoogland <daan@onecht.net>
Committed: Tue Jun 23 23:27:03 2015 +0200

----------------------------------------------------------------------
 .../com/cloud/baremetal/networkservice/BaremetalPxeElement.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e8984d16/plugins/hypervisors/baremetal/src/com/cloud/baremetal/networkservice/BaremetalPxeElement.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/baremetal/src/com/cloud/baremetal/networkservice/BaremetalPxeElement.java
b/plugins/hypervisors/baremetal/src/com/cloud/baremetal/networkservice/BaremetalPxeElement.java
index 10b81c2..da28668 100644
--- a/plugins/hypervisors/baremetal/src/com/cloud/baremetal/networkservice/BaremetalPxeElement.java
+++ b/plugins/hypervisors/baremetal/src/com/cloud/baremetal/networkservice/BaremetalPxeElement.java
@@ -127,10 +127,10 @@ public class BaremetalPxeElement extends AdapterBase implements NetworkElement
{
         }
 
         VMInstanceVO vo = _vmDao.findById(vm.getId());
+        assert vo != null : "Where ths nic " + nic.getId() + " going???";
         if (vo.getLastHostId() == null) {
             nic.setMacAddress(dest.getHost().getPrivateMacAddress());
             NicVO nicVo = _nicDao.findById(nic.getId());
-            assert vo != null : "Where ths nic " + nic.getId() + " going???";
             nicVo.setMacAddress(nic.getMacAddress());
             _nicDao.update(nicVo.getId(), nicVo);
 


Mime
View raw message