Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
salt-observer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
django
salt-observer
Commits
2d244668
Commit
2d244668
authored
9 years ago
by
Tim Fechner
Committed by
Tim Fechner
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add new command to check if domains are valid
parent
bae89501
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
salt_observer/management/commands/checkdomainvalidity.py
+13
-0
13 additions, 0 deletions
salt_observer/management/commands/checkdomainvalidity.py
with
13 additions
and
0 deletions
salt_observer/management/commands/checkdomainvalidity.py
0 → 100644
+
13
−
0
View file @
2d244668
from
django.core.management.base
import
BaseCommand
from
salt_observer.models
import
Domain
class
Command
(
BaseCommand
):
help
=
'
Check all domains if they are valid
'
def
handle
(
self
,
*
args
,
**
kwargs
):
'''
Check every domain
'''
for
domain
in
Domain
.
objects
.
all
():
domain
.
check_if_valid
()
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