Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fsl_sub_plugin_sge
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fsl_sub_plugin_sge
Commits
277aa58d
Commit
277aa58d
authored
4 years ago
by
Duncan Mortimer
Browse files
Options
Downloads
Patches
Plain Diff
Rename example_conf to default_conf
parent
5f724b09
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
fsl_sub_plugin_sge/__init__.py
+6
-6
6 additions, 6 deletions
fsl_sub_plugin_sge/__init__.py
with
6 additions
and
6 deletions
fsl_sub_plugin_sge/__init__.py
+
6
−
6
View file @
277aa58d
...
...
@@ -717,16 +717,16 @@ def _default_config_file():
'
fsl_sub_sge.yml
'
)
def
example
_conf
():
'''
Returns a string containing the
example
configuration for this
def
default
_conf
():
'''
Returns a string containing the
default
configuration for this
cluster plugin.
'''
try
:
with
open
(
_default_config_file
())
as
e
_conf_f
:
e
_conf
=
e
_conf_f
.
read
()
with
open
(
_default_config_file
())
as
d
_conf_f
:
d
_conf
=
d
_conf_f
.
read
()
except
FileNotFoundError
as
e
:
raise
MissingConfiguration
(
"
Unable to find
example
configuration file:
"
+
str
(
e
))
return
e
_conf
raise
MissingConfiguration
(
"
Unable to find
default
configuration file:
"
+
str
(
e
))
return
d
_conf
def
job_status
(
job_id
,
sub_job_id
=
None
):
...
...
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