Skip to content

Commit

Permalink
Merge pull request #86 from spotty-cloud/dev
Browse files Browse the repository at this point in the history
Spotty 1.3.2
  • Loading branch information
apls777 authored Jan 14, 2021
2 parents 75823cf + f4c9558 commit 03a8411
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spotty/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.3.1'
__version__ = '1.3.2'
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ do

# NVMe EBS volume (see: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nvme-ebs-volumes.html)
if [ ! -b $DEVICE ]; then
VOLUME_ID=$(cfn-get-metadata --stack ${AWS::StackName} --region us-east-2 --resource VolumeAttachment${!DEVICE_LETTERS[$i]^} -k VolumeId)
VOLUME_ID=$(cfn-get-metadata --stack ${AWS::StackName} --region ${AWS::Region} --resource VolumeAttachment${!DEVICE_LETTERS[$i]^} -k VolumeId)
DEVICE=$(lsblk -o NAME,SERIAL -dpJ | jq -rc ".blockdevices[] | select(.serial == \"${!VOLUME_ID//-}\") | .name")
if [ -z "$DEVICE" ]; then
echo "Device for the volume $VOLUME_ID not found"
Expand Down

0 comments on commit 03a8411

Please sign in to comment.