You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by dk...@apache.org on 2013/07/15 09:00:18 UTC

[8/8] git commit: CIMI: add dealing with 202 return code from system delete Used by FGCP. See 4.2.1.7 Asynchronous operations of CIMI 1.0.1 spec.

CIMI: add dealing with 202 return code from system delete
Used by FGCP. See 4.2.1.7 Asynchronous operations of CIMI 1.0.1 spec.


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

Branch: refs/heads/master
Commit: 16ba86d8f5e9d021463ef79cfba2894178c99854
Parents: 3618609
Author: Dies Koper <di...@fast.au.fujitsu.com>
Authored: Mon Jul 15 12:58:36 2013 +1000
Committer: Dies Koper <di...@fast.au.fujitsu.com>
Committed: Mon Jul 15 12:58:47 2013 +1000

----------------------------------------------------------------------
 clients/cimi/lib/entities/system.rb | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/16ba86d8/clients/cimi/lib/entities/system.rb
----------------------------------------------------------------------
diff --git a/clients/cimi/lib/entities/system.rb b/clients/cimi/lib/entities/system.rb
index 996cb57..4661fec 100644
--- a/clients/cimi/lib/entities/system.rb
+++ b/clients/cimi/lib/entities/system.rb
@@ -125,6 +125,9 @@ class CIMI::Frontend::System < CIMI::Frontend::Entity
     if result.code == 200
       flash[:success] = "System '#{params[:id]}' was successfully destroyed."
       redirect '/cimi/systems'
+    elsif result.code == 202
+      flash[:success] = "Deletion of System '#{params[:id]}' was successfully initiated."
+      redirect '/cimi/systems'
     else
       flash[:error] = "Unable to destroy system #{params[:id]}"
     end