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

Fix purge --local regression #625

Merged

Conversation

cgalibern
Copy link
Contributor

No description provided.

@cgalibern cgalibern requested review from arnaudveron and cvaroqui and removed request for cvaroqui July 27, 2023 21:19
@cgalibern cgalibern marked this pull request as draft July 31, 2023 14:22
@cgalibern cgalibern force-pushed the fix-817b97660894971e18689393c6090d1a57a901c6 branch from 025b64d to 2af7d92 Compare July 31, 2023 14:51
call_action -> self.setup_environ -> os.environ['OPENSVC_SVC_ID'] = self.id -> create object if object is absent and not self.volatile

So after purge/delete action the object is recreated

The regression was introduced by #817b97660894971e18689393c6090d1a57a901c6

Reproduce bug with:
   om foo create
   om foo purge --local
   om foo ls
@cgalibern cgalibern force-pushed the fix-817b97660894971e18689393c6090d1a57a901c6 branch from 2af7d92 to 1b535d7 Compare July 31, 2023 15:01
@cgalibern cgalibern marked this pull request as ready for review July 31, 2023 15:02
@cgalibern cgalibern merged commit c7703de into opensvc:b2.1 Jul 31, 2023
3 checks passed
@cgalibern cgalibern deleted the fix-817b97660894971e18689393c6090d1a57a901c6 branch November 16, 2023 10:26
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

Successfully merging this pull request may close these issues.

None yet

1 participant