Author: adietish
Date: 2010-11-25 14:04:09 -0500 (Thu, 25 Nov 2010)
New Revision: 26951
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/PerformDestroyInstanceActionThread.java
Log:
removed duplicate code: destroyInstance is already handled by performInstanceAction
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/PerformDestroyInstanceActionThread.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/PerformDestroyInstanceActionThread.java 2010-11-25
19:00:25 UTC (rev 26950)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/PerformDestroyInstanceActionThread.java 2010-11-25
19:04:09 UTC (rev 26951)
@@ -48,7 +48,7 @@
@Override
public void run() {
try {
- cloud.destroyInstance(instance.getId());
+ cloud.performInstanceAction(instance.getId(), DeltaCloudInstance.START);
} catch (DeltaCloudException e) {
ErrorUtils.handleError("Error",
MessageFormat.format("Could not destroy instance {0}",
instance.getName()), e,
Show replies by date