deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dko...@apache.org
Subject git commit: Fix empty network_interfaces in Mock#destroy_instance
Date Tue, 21 May 2013 11:44:15 GMT
Updated Branches:
  refs/heads/master 8b7ca16ca -> 0e7ab2551


Fix empty network_interfaces in Mock#destroy_instance


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

Branch: refs/heads/master
Commit: 0e7ab25512eeb606f22a7976d5b9587173186fee
Parents: 8b7ca16
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Tue May 21 12:45:21 2013 +0200
Committer: Michal Fojtik <mfojtik@redhat.com>
Committed: Tue May 21 12:45:21 2013 +0200

----------------------------------------------------------------------
 server/lib/deltacloud/drivers/mock/mock_driver.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/0e7ab255/server/lib/deltacloud/drivers/mock/mock_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/mock/mock_driver.rb b/server/lib/deltacloud/drivers/mock/mock_driver.rb
index feb3a01..0688ae6 100644
--- a/server/lib/deltacloud/drivers/mock/mock_driver.rb
+++ b/server/lib/deltacloud/drivers/mock/mock_driver.rb
@@ -257,7 +257,7 @@ module Deltacloud::Drivers::Mock
       inst = @client.load_collection(:instances, id)
       inst[:network_interfaces].each do |network_interface|
         destroy_network_interface(credentials, network_interface)
-      end
+      end if inst[:network_interfaces]
       @client.destroy(:instances, id)
     end
 


Mime
View raw message