dm-drogeriemarkt / foreman_vault

Foreman integration with Vault
GNU General Public License v3.0
18 stars 10 forks source link

Reload host record before saving Vault policy/auth method #47

Closed laugmanuel closed 3 years ago

laugmanuel commented 3 years ago

This prevents a race condition where the host gets deleted after all hosts where queried but before the actual host gets written to Vault.

fixes #46

laugmanuel commented 3 years ago

A bit hacky, but good enough.

I'm open for improvements ;)

would be nice to have some test 😄

I will add some 👍🏻