mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-05 12:51:38 +02:00
Reflect k8s volume id in test data. Extract aws volume id from k8s value.
This commit is contained in:
@@ -47,7 +47,7 @@ func (r *EBSVolumeResizer) GetProviderVolumeID(pv *v1.PersistentVolume) (string,
|
||||
}
|
||||
idx := strings.LastIndex(volumeID, constants.EBSVolumeIDStart) + 1
|
||||
if idx == 0 {
|
||||
return "", fmt.Errorf("malfored EBS volume id %q", volumeID)
|
||||
return "", fmt.Errorf("malformed EBS volume id %q", volumeID)
|
||||
}
|
||||
return volumeID[idx:], nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user