public function getInstanceVolumes()
{
// make sure we have a host to work with
$this->requiresValidHost(__METHOD__);
// what are we doing?
$log = usingLog()->startAction("retrieve configuration for all volumes attached to EC2 VM '{$this->instanceName}'");
// does this instance have any block devices?
if (isset($this->instance['BlockDeviceMappings'])) {
$log->endAction("found " . count($this->instance['BlockDeviceMappings']) . " volumes");
return $this->instance['BlockDeviceMappings'];
}
// if we get here, the instance has no volumes, which is
// a little weird
$log->endAction("no volumes found");
return array();
}