CS-14907:download volume option should be present only in READY state since it has moved to primary storage

This commit is contained in:
Pranav Saxena 2012-08-01 10:54:48 +05:30
parent a0d6dd4ad3
commit e51076af3f
1 changed files with 1 additions and 1 deletions

View File

@ -1311,7 +1311,7 @@
allowedActions.push("recurringSnapshot");
}
if(jsonObj.state != "Allocated") {
if((jsonObj.vmstate == "Stopped" || jsonObj.virtualmachineid == null) && jsonObj.state != "Ready") {
if((jsonObj.vmstate == "Stopped" || jsonObj.virtualmachineid == null) && jsonObj.state == "Ready") {
allowedActions.push("downloadVolume");
}
}