Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
RadioObservatory
LOFAR
Commits
2985f140
Commit
2985f140
authored
9 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Task #8899: Fixed typos and exports
parent
d844f553
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
LCS/PyCommon/dbcredentials.py
+2
-2
2 additions, 2 deletions
LCS/PyCommon/dbcredentials.py
with
2 additions
and
2 deletions
LCS/PyCommon/dbcredentials.py
+
2
−
2
View file @
2985f140
...
...
@@ -25,7 +25,7 @@ import pwd
from
ConfigParser
import
SafeConfigParser
,
NoSectionError
,
DuplicateSectionError
from
optparse
import
OptionGroup
__all__
=
[
"
DBCredentials
"
,
"
options_group
"
,
"
parse_options
"
,
"
pg_connect_options
"
]
__all__
=
[
"
Credentials
"
,
"
DBCredentials
"
,
"
options_group
"
,
"
parse_options
"
]
# obtain the environment, and add USER and HOME if needed (since supervisord does not)
environ
=
os
.
environ
...
...
@@ -166,7 +166,7 @@ class DBCredentials:
Return a list of databases for which credentials are available.
"""
sections
=
self
.
config
.
sections
()
return
[
s
[
9
:]
for
s
in
sections
if
s
.
starts
W
ith
(
"
database:
"
)]
return
[
s
[
9
:]
for
s
in
sections
if
s
.
starts
w
ith
(
"
database:
"
)]
def
_section
(
self
,
database
):
...
...
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