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 syndic regression #33021
Fix syndic regression #33021
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,12 +100,13 @@ def prep_jid(nocache=False, passed_jid=None, recurse_count=0): | |
|
||
# Make sure we create the jid dir, otherwise someone else is using it, | ||
# meaning we need a new jid. | ||
try: | ||
os.makedirs(jid_dir_) | ||
except OSError: | ||
time.sleep(0.1) | ||
if passed_jid is None: | ||
return prep_jid(nocache=nocache, recurse_count=recurse_count+1) | ||
if not os.path.isdir(jid_dir_): | ||
try: | ||
os.makedirs(jid_dir_) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would be good to filter for the specific |
||
except OSError: | ||
time.sleep(0.1) | ||
if passed_jid is None: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The original bug is that the |
||
return prep_jid(nocache=nocache, recurse_count=recurse_count+1) | ||
|
||
try: | ||
with salt.utils.fopen(os.path.join(jid_dir_, 'jid'), 'wb+') as fn_: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be more correct as the following: