Skip to content

DNS Info Modules#40

Open
SebastianGode wants to merge 59 commits intomainfrom
dns2
Open

DNS Info Modules#40
SebastianGode wants to merge 59 commits intomainfrom
dns2

Conversation

@SebastianGode
Copy link
Copy Markdown
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
Comment thread plugins/modules/dns_recordset_info.py
Comment thread plugins/modules/dns_floating_ip_info.py Outdated
Comment thread plugins/modules/dns_floating_ip_info.py Outdated
Comment thread plugins/modules/dns_floating_ip_info.py Outdated

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

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
Copy Markdown
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

Comment thread plugins/modules/dns_nameserver_info.py Outdated
Comment thread plugins/modules/dns_nameserver_info.py Outdated

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

Choose a reason for hiding this comment

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

and again - merge loops

Comment thread plugins/modules/dns_zone_info.py Outdated
Comment thread plugins/modules/dns_zone_info.py Outdated
Comment thread plugins/modules/dns_zone_info.py Outdated
query = {}

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

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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
Copy Markdown
Member Author

Don't merge this yet.
Merge DNS Modules first

@SebastianGode
Copy link
Copy Markdown
Member Author

recheck

3 similar comments
@SebastianGode
Copy link
Copy Markdown
Member Author

recheck

@SebastianGode
Copy link
Copy Markdown
Member Author

recheck

@SebastianGode
Copy link
Copy Markdown
Member Author

recheck

@SebastianGode
Copy link
Copy Markdown
Member Author

recheck

2 similar comments
@SebastianGode
Copy link
Copy Markdown
Member Author

recheck

@SebastianGode
Copy link
Copy Markdown
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