Use Status enum not value

This commit is contained in:
Andrew Donald Kennedy 2012-04-16 10:47:44 +01:00
parent a8e5938b6a
commit d30f6548ee
1 changed files with 1 additions and 1 deletions

View File

@ -450,7 +450,7 @@ public abstract class BaseVCloudDirectorClientLiveTest extends BaseContextLiveTe
} }
// Shutdown and power off the VApp if necessary // Shutdown and power off the VApp if necessary
if (vApp.getStatus().equals(Status.POWERED_ON.getValue())) { if (vApp.getStatus() == Status.POWERED_ON) {
try { try {
Task shutdownTask = vAppClient.shutdown(vAppURI); Task shutdownTask = vAppClient.shutdown(vAppURI);
taskDoneEventually(shutdownTask); taskDoneEventually(shutdownTask);