mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
provider/aws: Switch format for error message to utilize Go Stringer
This commit is contained in:
parent
a344204cc7
commit
2a860ff564
@ -340,7 +340,7 @@ func resourceAwsDirectoryServiceDirectoryCreate(d *schema.ResourceData, meta int
|
|||||||
}
|
}
|
||||||
if _, err := stateConf.WaitForState(); err != nil {
|
if _, err := stateConf.WaitForState(); err != nil {
|
||||||
return fmt.Errorf(
|
return fmt.Errorf(
|
||||||
"Error waiting for Directory Service (%s) to become available: %#v",
|
"Error waiting for Directory Service (%s) to become available: %s",
|
||||||
d.Id(), err)
|
d.Id(), err)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -404,7 +404,7 @@ func resourceAwsDirectoryServiceDirectoryRead(d *schema.ResourceData, meta inter
|
|||||||
}
|
}
|
||||||
|
|
||||||
dir := out.DirectoryDescriptions[0]
|
dir := out.DirectoryDescriptions[0]
|
||||||
log.Printf("[DEBUG] Received DS directory: %s", *dir)
|
log.Printf("[DEBUG] Received DS directory: %s", dir)
|
||||||
|
|
||||||
d.Set("access_url", *dir.AccessUrl)
|
d.Set("access_url", *dir.AccessUrl)
|
||||||
d.Set("alias", *dir.Alias)
|
d.Set("alias", *dir.Alias)
|
||||||
|
Loading…
Reference in New Issue
Block a user