-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Have nsupdate add expected quotation to TXT records #43386
Conversation
The test
|
This prevents the accidental creation of TXT records where every single word gets split into its own string, such as TXT record values in the format of `"foo" "bar" "baz"`. That being an implicit behavior I have very hard to see anyone purposely relying on. TXT record values can still explicitly be defined as one or more strings, without any change in syntax. Resolves ansible#43380
e598596
to
978f85b
Compare
@@ -207,8 +207,18 @@ def __init__(self, module): | |||
else: | |||
self.algorithm = module.params['key_algorithm'] | |||
|
|||
if self.module.params['type'].lower() == 'txt': |
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.
This issue also affects SPF records (even though they are deprecated).
Maybe there are other record types aswell that use text values?
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.
This is strictly a personal opinion, but I don't really feel inclined to add code to support a deprecated record type.
@nerzhul: Thoughts? |
One week remaining until the Ansible 2.7 community modules freeze. @nerzhul: Any opinion either way in regards to this PR? |
shipit |
SUMMARY
This prevents the accidental creation of TXT records where every
single word gets split into its own string, such as TXT record values
in the format of
"foo" "bar" "baz"
. That being an implicit behaviorI have very hard to see anyone purposely relying on.
TXT record values can still explicitly be defined as one or more
strings, without any change in syntax.
Resolves #43380
ISSUE TYPE
COMPONENT NAME
nsupdate
ANSIBLE VERSION