Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

Commit

Permalink
add volume status
Browse files Browse the repository at this point in the history
  • Loading branch information
Genki Sugawara committed Apr 1, 2012
1 parent 88de2bd commit 54fe039
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ec2ui/content/ec2ui/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -3106,8 +3106,12 @@ var ec2ui_controller = {
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);

volumeStatus = volumeStatus.snapshotItem(0);
var status = getNodeValueByName(volumeStatus, 'status');
var status = 'normal';

if (volumeStatus.snapshotLength > 0) {
volumeStatus = volumeStatus.snapshotItem(0);
status = getNodeValueByName(volumeStatus, 'status');
}

if (objResponse.callback) {
objResponse.callback(status);
Expand Down
2 changes: 2 additions & 0 deletions ec2ui/content/ec2ui/volumes_tab_overlay.xul
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
<menuitem oncommand="ec2ui_VolumeTreeView.deleteVolume();"
label="&ec2ui.volume.contextmenu.delete.label;" />
<menuseparator />
<menuitem oncommand="ec2ui_VolumeTreeView.showVolumeStatus();"
label="Show Volume Status" />
<menuitem oncommand="ec2ui_VolumeTreeView.enableVolumeIO();"
label="Enable Volume I/O" />
<menuitem oncommand="ec2ui_VolumeTreeView.showAutoEnableIO();"
Expand Down

0 comments on commit 54fe039

Please sign in to comment.