Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.extension
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.extension
Commits
c08087fa
Commit
c08087fa
authored
2 years ago
by
Yannick DAYER
Browse files
Options
Downloads
Patches
Plain Diff
Fix rc not updating its config file path on the CI
parent
368925e2
No related branches found
No related tags found
1 merge request
!147
Use exposed rc implementation for toml support
Pipeline
#66751
passed
2 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/extension/scripts/config.py
+4
-1
4 additions, 1 deletion
bob/extension/scripts/config.py
with
4 additions
and
1 deletion
bob/extension/scripts/config.py
+
4
−
1
View file @
c08087fa
...
...
@@ -4,8 +4,10 @@ import logging
import
click
from
exposed.rc
import
UserDefaults
from
..
import
rc
from
..rc_config
import
_get_rc_path
,
_rc_to_str
,
_saverc
from
..rc_config
import
ENVNAME
,
RCFILENAME
,
_get_rc_path
,
_rc_to_str
,
_saverc
from
.click_helper
import
AliasedGroup
,
verbosity_option
# Use the normal logging module. Verbosity and format of logging will be set by
...
...
@@ -88,6 +90,7 @@ def set(key, value):
* If something goes wrong.
"""
try
:
rc
=
UserDefaults
(
path
=
RCFILENAME
,
envname
=
ENVNAME
,
logger
=
logger
)
rc
[
key
]
=
value
rc
.
write
()
except
Exception
:
...
...
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