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
03ddfe2f
Commit
03ddfe2f
authored
9 years ago
by
Tim Fechner
Committed by
Tim Fechner
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Minior changes on fetchpackages.py
parent
53723044
No related branches found
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/fetchpackages.py
+1
-2
1 addition, 2 deletions
salt_observer/management/commands/fetchpackages.py
with
1 addition
and
2 deletions
salt_observer/management/commands/fetchpackages.py
+
1
−
2
View file @
03ddfe2f
from
django.core.management.base
import
BaseCommand
from
django.core.management.base
import
BaseCommand
from
django.utils
import
timezone
from
salt_observer.models
import
Minion
from
salt_observer.models
import
Minion
from
.
import
ApiCommand
from
.
import
ApiCommand
...
@@ -8,7 +7,7 @@ import json
...
@@ -8,7 +7,7 @@ import json
class
Command
(
ApiCommand
,
BaseCommand
):
class
Command
(
ApiCommand
,
BaseCommand
):
help
=
'
Fetch and save
new data from all servers
'
help
=
'
Fetch and save
packagedata
'
def
save_packages
(
self
,
api
):
def
save_packages
(
self
,
api
):
packages
=
api
.
get_server_module_data
(
'
pkg.list_pkgs
'
)
packages
=
api
.
get_server_module_data
(
'
pkg.list_pkgs
'
)
...
...
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