DataUnifiUser should implement retry / wait
markussiebert opened this issue · 2 comments
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:
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...
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
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.