deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <di...@fast.au.fujitsu.com>
Subject [PATCH] FGCP: return easier to understand error when creating system with already used name
Date Tue, 23 Apr 2013 06:09:21 GMT
From: Dies Koper <diesk@fast.au.fujitsu.com>

---
 server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb b/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
index 9ca65c6..5a299fe 100644
--- a/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
+++ b/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
@@ -1536,6 +1536,11 @@ eofwopxml
       status 409 # Conflict
     end
 
+    # trying to create a system with a name that's already taken
+    on /SYSTEM_NAME_ALREADY_EXISTS/ do
+      status 409 # Conflict
+    end
+
     # reached maximum number of attempts while polling for an update
     on /Server did not include public IP address in FW NAT rules/ do
       status 504 # Gateway Timeout
-- 
1.8.0.msysgit.0



Mime
View raw message