Skip to content

Conversation

acamacho82
Copy link
Contributor

The new methods allows to create MX, SRV and PTR records.
The CLI supports the creation of A, AAAA, MX, TXT, SPF, SRV, CNAME, and PTR records, it should fix the issue #584

@coveralls
Copy link

coveralls commented Sep 7, 2018

Coverage Status

Coverage increased (+0.04%) to 89.186% when pulling 6fe950c on acamacho82:Issue-584 into 301a488 on softlayer:master.

…al was removed since it will never be executed
Copy link
Member

@allmightyspiff allmightyspiff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change the parameter type to something else, otherwise looks good.

manager = SoftLayer.DNSManager(env.client)
zone_id = helpers.resolve_id(manager.resolve_ids, zone, name='zone')
manager.create_record(zone_id, record, type, data, ttl=ttl)
type = type.upper()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type is a built in function of python, use zone_type or something similar instead.
I know it was already type, but now is a good time to fix that I think.

@acamacho82
Copy link
Contributor Author

Agree, I changed type by record_type :D

@allmightyspiff allmightyspiff merged commit 1a58b24 into softlayer:master Sep 18, 2018
allmightyspiff added a commit that referenced this pull request Oct 3, 2018
v5.5.3

+ Added `slcli user delete`
+ #1023 Added `slcli order quote` to let users create a quote from the slcli.
+ #1032 Fixed vs upgrades when using flavors.
+ #1034 Added pagination to ticket list commands
+ #1037 Fixed DNS manager to be more flexible and support more zone types.
+ #1044 Pinned Click library version at >=5 < 7
@allmightyspiff allmightyspiff mentioned this pull request Oct 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants