-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add FQDN or URL Custom support for context profile #835
Conversation
8c086d5
to
4821b83
Compare
}, | ||
|
||
Schema: map[string]*schema.Schema{ | ||
"fqdn": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we allow to configure CUSTOM_URL as part of same resource?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah we could rename this resource to "custom_attribute" and have both. Would it make this more usable?
d9bcff2
to
5ef1492
Compare
a1a10d1
to
7a58332
Compare
e9f0567
to
4709d8e
Compare
key := d.Get("key").(string) | ||
attribute := d.Get("attribute").(string) | ||
if d.Id() == "" { | ||
d.SetId(makeCustomAttributeID(key, attribute)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we need to SetId at the end of Create, once we're the resource was created succesfully
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
4709d8e
to
cdaf6e9
Compare
To allow addition of custom URLs or FQDNs to context profile objects. Signed-off-by: Kobi Samoray <[email protected]>
cdaf6e9
to
9a96959
Compare
/test-all |
1 similar comment
/test-all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets also add a test that uses custom attribute in context profile. Could be in follow up if you prefer.
Makes sense, I'll create an issue to track this follow up. |
To allow addition of custom URLs or FQDNs to context profile objects.
Fixes: #699, #721
Signed-off-by: Kobi Samoray [email protected]