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

DataUnifiUser should implement retry / wait #291

Open
markussiebert opened this issue Nov 4, 2022 · 2 comments
Open

DataUnifiUser should implement retry / wait #291

markussiebert opened this issue Nov 4, 2022 · 2 comments

Comments

@markussiebert
Copy link

As I wrote in #290 I use this provider to lookup the IP-Address of virtual machines, after they were created via the proxmox provider. It works if I do it like this:

image

But - I manually have to implement a sleep of 5 minutes after the vm creation. It would be really nice, if this provider could provide something like retry logic, if the IP was not found, instead of failing with an error. Maybe with some maximum timeout ...

Maybe I would implement this, if you are interested...

@paultyng
Copy link
Owner

Just as a possible workaround, you may be able to use the time provider: https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep

@joshuaspence
Copy link
Collaborator

I think we could add a wait_for_ip parameter to the data source for this purpose. Alternatively, we could implement a unifi_user_ip data source.

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

No branches or pull requests

3 participants