make diskname optional
This commit is contained in:
parent
aa780c9d7e
commit
6ef2b18c66
1 changed files with 1 additions and 1 deletions
|
|
@ -418,7 +418,7 @@ func (c *ServerClient) updateConfig(ctx context.Context, s *Server, body httpbod
|
|||
func (c *ServerClient) resizeDisk(ctx context.Context, s *Server) (err error) {
|
||||
diskName := ""
|
||||
if s.Resources.Disk.Name != nil {
|
||||
diskName = s.Resources.Disk.Name
|
||||
diskName = *s.Resources.Disk.Name
|
||||
}
|
||||
body := httpbody{
|
||||
"disk": diskName,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue