You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfmt.Errorf("The project set on this secret version (%s) is not equal to the project where this secret exists (%s).", d.Get("project").(string), fv.Project)
79
-
}
80
82
project:=fv.Project
83
+
ifdProject, ok:=d.Get("project").(string); !ok {
84
+
returnfmt.Errorf("wrong type for project (%T), expected string", d.Get("project"))
85
+
} elseifdProject!=""&&dProject!=project {
86
+
returnfmt.Errorf("project field value (%s) does not match project of secret (%s).", dProject, project)
returnfmt.Errorf("The project set on this secret version (%s) is not equal to the project where this secret exists (%s).", d.Get("project").(string), fv.Project)
67
-
}
70
+
68
71
project:=fv.Project
72
+
ifdProject, ok:=d.Get("project").(string); !ok {
73
+
returnfmt.Errorf("wrong type for project (%T), expected string", d.Get("project"))
74
+
} elseifdProject!=""&&dProject!=project {
75
+
returnfmt.Errorf("project field value (%s) does not match project of secret (%s).", dProject, project)
returnfmt.Errorf("The project set on this secret version (%s) is not equal to the project where this secret exists (%s).", d.Get("project").(string), parts[1])
103
+
ifdProject, ok:=d.Get("project").(string); !ok {
104
+
returnfmt.Errorf("wrong type for project (%T), expected string", d.Get("project"))
105
+
} elseifdProject!=""&&dProject!=project {
106
+
returnfmt.Errorf("project field value (%s) does not match project of secret (%s).", dProject, project)
returnfmt.Errorf("The location set on this secret version (%s) is not equal to the location where this secret exists (%s).", d.Get("location").(string), parts[2])
returnfmt.Errorf("secret name, %s, does not match format, projects/{{project}}/locations/{{location}}/secrets/{{secret}}/versions/{{version}}", secretVersion["name"].(string))
171
+
returnfmt.Errorf("secret name, %s, does not match format, projects/{{project}}/locations/{{location}}/secrets/{{secret}}/versions/{{version}}", nameValue.(string))
159
172
}
160
173
161
174
log.Printf("[DEBUG] Received Google Secret Manager Regional Secret Version: %q", secretVersion)
0 commit comments