chore: fix build failure due to sdk upgrade

This commit is contained in:
andyzhangx 2020-06-06 14:21:56 +00:00
parent ceecc17001
commit 155fde4931

View File

@ -68,7 +68,7 @@ func (c *Client) DeleteFileShare(resourceGroupName, accountName, name string) er
func (c *Client) ResizeFileShare(resourceGroupName, accountName, name string, sizeGiB int) error {
quota := int32(sizeGiB)
share, err := c.fileSharesClient.Get(context.Background(), resourceGroupName, accountName, name)
share, err := c.fileSharesClient.Get(context.Background(), resourceGroupName, accountName, name, storage.Stats)
if err != nil {
return fmt.Errorf("failed to get file share(%s), : %v", name, err)
}
@ -92,5 +92,5 @@ func (c *Client) ResizeFileShare(resourceGroupName, accountName, name string, si
// GetFileShare gets a file share
func (c *Client) GetFileShare(resourceGroupName, accountName, name string) (storage.FileShare, error) {
return c.fileSharesClient.Get(context.Background(), resourceGroupName, accountName, name)
return c.fileSharesClient.Get(context.Background(), resourceGroupName, accountName, name, storage.Stats)
}