saltstack-formulas / lxd-formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
21 stars 18 forks source link

wait on pylxd to finish saving a device #20

Closed goapunk closed 3 years ago

goapunk commented 3 years ago

PR progress checklist (to be filled in by reviewers)


What type of PR is this?

Primary type

Secondary type

Does this PR introduce a BREAKING CHANGE?

No.

Related issues and/or pull requests

Describe the changes you're proposing

We should wait on pylxd successfully saving the device, otherwise there's a chance that some devices won't be added. The current flow for adding a device on creation is

When adding multiple devices step 1. may return the container without the previous device since the save in step 3 hasn't finished. This MR changes the behaviour to always wait for save() command to finish

Pillar / config required to test the proposed changes

Debug log showing how the proposed changes work

Documentation checklist

Testing checklist

Additional context

Ah, just realized that since the lxd module is official I should probably post this PR in the salt repo...should I close this here @pcdummy ?