Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
Yaml Configurator
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
BIAS
Configurators
Yaml Configurator
Commits
d818e432
Commit
d818e432
authored
1 year ago
by
Valerio Pastore
Browse files
Options
Downloads
Patches
Plain Diff
small fix
parent
d4107c79
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Yaml_Conf.cpp
+7
-8
7 additions, 8 deletions
src/Yaml_Conf.cpp
with
7 additions
and
8 deletions
src/Yaml_Conf.cpp
+
7
−
8
View file @
d818e432
...
...
@@ -31,11 +31,11 @@ void YamlConfigurator::load(std::string path) {
}
/**
* Aggiorna il file di configurazione YAML inserendo nuove voci di configurazione per la chiave target.
* Rimuove anche le vecchie
configura
z
ion
i corrisp
on
d
ent
i alla chiav
e target.
*
*
@param target
La chiave di destinazione per la quale aggiungere e rimuovere le voci di
configura
z
ion
e
.
*/
Updates the YAML
configura
t
ion
file by adding new configurati
on
ent
ries for th
e target
key
.
It also removes old configurations corresponding to the target key.
@param target
The target key for which to add and remove
configura
t
ion
entries
.
*/
int
YamlConfigurator
::
pushConfigToSource
(
std
::
string
target
)
{
boost
::
to_lower
(
target
);
// Extracrs only target entries
...
...
@@ -109,9 +109,8 @@ int YamlConfigurator::pushConfigToSource(std::string target) {
}
int
YamlConfigurator
::
pushConfigToSource
()
{
// e
s
tra
ggo tutti i target e li inserisco nel vector
// e
x
tra
ct targets
std
::
vector
<
std
::
string
>
tagets
;
for
(
const
auto
&
pair
:
config
)
{
std
::
string
key
=
pair
.
first
;
size_t
pos
=
key
.
find
(
'_'
);
...
...
@@ -124,7 +123,7 @@ int YamlConfigurator::pushConfigToSource() {
}
}
}
// c
hiamo la funzione per ogni
target
.
// c
all push for each
target
for
(
auto
target
:
tagets
)
pushConfigToSource
(
target
);
return
1
;
...
...
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