Skip to content

Commit

Permalink
r/storage_share: updating to use the new input struct
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Nov 6, 2020
1 parent 8f12c2b commit db032a5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ func resourceArmStorageShareDirectoryCreate(d *schema.ResourceData, meta interfa
return tf.ImportAsExistsError("azurerm_storage_share_directory", id)
}

if _, err := client.Create(ctx, accountName, shareName, directoryName, metaData); err != nil {
input := directories.CreateDirectoryInput{
MetaData: metaData,
}
if _, err := client.Create(ctx, accountName, shareName, directoryName, input); err != nil {
return fmt.Errorf("Error creating Directory %q (File Share %q / Account %q): %+v", directoryName, shareName, accountName, err)
}

Expand Down

0 comments on commit db032a5

Please sign in to comment.