Skip to content

Commit 5660a2f

Browse files
authored
Merge pull request #1432 from ioito/hotfix/qx-aliyun-snapshot-name
fix(aliyun): snapshot name
2 parents ddfb05b + 1a34353 commit 5660a2f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/multicloud/aliyun/snapshot.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ func (self *SSnapshot) GetId() string {
5959
}
6060

6161
func (self *SSnapshot) GetName() string {
62-
return self.SnapshotName
62+
if len(self.SnapshotName) > 0 {
63+
return self.SnapshotName
64+
}
65+
return self.SnapshotId
6366
}
6467

6568
func (self *SSnapshot) GetStatus() string {

0 commit comments

Comments
 (0)