Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rabbitmq_agents
Manage
Activity
Members
Labels
Plan
Issues
16
Issue boards
Milestones
Wiki
Code
Merge requests
8
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rc
rabbitmq_agents
Merge requests
!110
WIP: Added script in dir_verify agent to create dir
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
WIP: Added script in dir_verify agent to create dir
github/fork/krishmoodbidri/add-post-user-script
into
feat-cod-rmq
Overview
3
Commits
1
Pipelines
0
Changes
1
Closed
Krish Moodbidri
requested to merge
github/fork/krishmoodbidri/add-post-user-script
into
feat-cod-rmq
3 years ago
Overview
3
Commits
1
Pipelines
0
Changes
1
Expand
👍
0
👎
0
Merge request reports
Compare
feat-cod-rmq
feat-cod-rmq (base)
and
latest version
latest version
dbe741de
1 commit,
1 year ago
1 file
+
8
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
prod_rmq_agents/dir_verify.py
+
8
−
0
Options
@@ -23,6 +23,14 @@ def dir_verify(ch, method, properties, body):
msg
[
"
success
"
]
=
True
missing_dirs
=
[]
access
=
0o777
parent_user_dir
=
"
/data/user
"
path
=
os
.
path
.
join
(
parent_user_dir
,
username
)
os
.
mkdir
(
path
,
access
)
parent_scratch_dir
=
"
/data/scratch
"
path
=
os
.
path
.
join
(
parent_scratch_dir
,
username
)
os
.
mkdir
(
path
,
access
)
try
:
for
d
in
dirs
:
Loading