Skip to content
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

DNS Info Modules #40

Open
wants to merge 59 commits into
base: main
Choose a base branch
from
Open

DNS Info Modules #40

wants to merge 59 commits into from

Conversation

SebastianGode
Copy link
Member

No description provided.

otc-zuul[bot]
otc-zuul bot previously approved these changes Oct 5, 2020
@SebastianGode SebastianGode added the enhancement New feature or request label Oct 5, 2020
plugins/modules/dns_floating_ip_info.py Outdated Show resolved Hide resolved
plugins/modules/dns_floating_ip_info.py Outdated Show resolved Hide resolved

# Filter data by deleting all entries without the right criteria
i = 0
while i < len(data):
Copy link
Member

Choose a reason for hiding this comment

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

double loop (and popping from array) is not good. Merge this into prev loop

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you have an Idea how I can merge that into the previous loop?
And why is that bad? Those aren't double loops, the runtime should be still linear O(n).
@gtema

plugins/modules/dns_nameserver_info.py Outdated Show resolved Hide resolved
plugins/modules/dns_nameserver_info.py Outdated Show resolved Hide resolved

# Filter data by deleting all entries without the right criteria
i = 0
while i < len(data):
Copy link
Member

Choose a reason for hiding this comment

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

and again - merge loops

plugins/modules/dns_zone_info.py Outdated Show resolved Hide resolved
plugins/modules/dns_zone_info.py Outdated Show resolved Hide resolved
query = {}

if self.params['zone_type']:
query['zone_type'] = self.params['zone_type']
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

@SebastianGode SebastianGode Nov 3, 2020

Choose a reason for hiding this comment

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

@gtema I looked at our doc under https://docs.otc.t-systems.com/en-us/api/dns/dns_api_62002.html and there nothing of that is written. WIll change that

Update: When requesting with e.g. the Query Parameter "name" which is supported according to the OpenStack Docu, it doesn't work.
"msg": "Invalid query params: name"


# Filter data by deleting all entries without the right criteria
i = 0
while i < len(data):
Copy link
Member

Choose a reason for hiding this comment

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

same as above

@SebastianGode
Copy link
Member Author

Don't merge this yet.
Merge DNS Modules first

@SebastianGode
Copy link
Member Author

recheck

3 similar comments
@SebastianGode
Copy link
Member Author

recheck

@SebastianGode
Copy link
Member Author

recheck

@SebastianGode
Copy link
Member Author

recheck

@SebastianGode
Copy link
Member Author

recheck

2 similar comments
@SebastianGode
Copy link
Member Author

recheck

@SebastianGode
Copy link
Member Author

recheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants