Skip to content

Commit

Permalink
use access policy
Browse files Browse the repository at this point in the history
  • Loading branch information
bcreddy-gcp committed Jan 11, 2025
1 parent d582945 commit 464e47b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
1 change: 1 addition & 0 deletions mmv1/products/colab/RuntimeTemplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ properties:
- name: 'name'
type: String
default_from_api: true
custom_flatten: 'templates/terraform/custom_flatten/name_from_self_link.tmpl'
description: 'The resource name of the Runtime Template'
- name: 'displayName'
type: String
Expand Down
4 changes: 2 additions & 2 deletions mmv1/templates/terraform/post_create/accesspolicy.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

resp := res["response"].(map[string]interface{})
name := tpgresource.GetResourceNameFromSelfLink(resp["name"].(string))
log.Printf("[DEBUG] Setting AccessPolicy name, id to %s", name)
log.Printf("[DEBUG] Setting resource name, id to %s", name)
if err := d.Set("name", name); err != nil {
return fmt.Errorf("Error setting name: %s", err)
}
d.SetId(name)
d.SetId(name)
11 changes: 0 additions & 11 deletions mmv1/templates/terraform/post_create/colab_runtime_template.tmpl

This file was deleted.

0 comments on commit 464e47b

Please sign in to comment.