Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
ReZeList
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
infra
ReZeList
Commits
6fbd7179
Commit
6fbd7179
authored
3 years ago
by
Thomas Schneider
Browse files
Options
Downloads
Patches
Plain Diff
Allow excluding users from final list
parent
fd98f050
No related branches found
No related tags found
No related merge requests found
Pipeline
#3886
passed
3 years ago
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/rezelist
+6
-1
6 additions, 1 deletion
bin/rezelist
config.sample.json
+4
-0
4 additions, 0 deletions
config.sample.json
with
10 additions
and
1 deletion
bin/rezelist
+
6
−
1
View file @
6fbd7179
...
...
@@ -34,7 +34,12 @@ def main():
for
d
in
config
[
"
domains
"
]:
# set to make unique, list to make sortable
output
[
d
]
=
list
(
{
a
.
localpart
for
a
in
addresses
if
a
.
domain
is
None
or
a
.
domain
==
d
}
{
a
.
localpart
for
a
in
addresses
if
(
a
.
domain
is
None
or
a
.
domain
==
d
)
and
a
.
localpart
not
in
config
[
"
exclude
"
]
}
)
output
[
d
].
sort
()
...
...
This diff is collapsed.
Click to expand it.
config.sample.json
+
4
−
0
View file @
6fbd7179
...
...
@@ -5,6 +5,10 @@
"sub.example.com"
,
"example.org"
],
"exclude"
:
[
"nobody"
,
"testuser"
],
"sources"
:
[
{
"type"
:
"aliases"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment