We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60cb27c commit c401de6Copy full SHA for c401de6
1 file changed
cloudstack/resource_cloudstack_role_permission_test.go
@@ -83,6 +83,10 @@ func testAccCheckCloudStackRolePermissionExists(n string, rolePermission *clouds
83
84
for _, rp := range l.RolePermissions {
85
if rp.Id == rs.Primary.ID {
86
+ if rolePermission.Id != "" && rolePermission.Id != rp.Id {
87
+ return fmt.Errorf("Role Permission was recreated (old ID: %s, new ID: %s)", rolePermission.Id, rp.Id)
88
+ }
89
+
90
*rolePermission = *rp
91
return nil
92
}
0 commit comments