File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -550,10 +550,6 @@ impl Configurator {
550
550
info ! ( "Set parameter '{name}' to '{value}'" ) ;
551
551
}
552
552
553
- if self . context . parameters . contains_key ( & name) {
554
- return Err ( DscError :: Validation ( format ! ( "Parameter '{name}' defined more than once" ) ) ) ;
555
- }
556
-
557
553
self . context . parameters . insert ( name. clone ( ) , ( value. clone ( ) , constraint. parameter_type . clone ( ) ) ) ;
558
554
// also update the configuration with the parameter value
559
555
if let Some ( parameters) = & mut self . config . parameters {
@@ -583,10 +579,6 @@ impl Configurator {
583
579
value. clone ( )
584
580
} ;
585
581
info ! ( "Set variable '{name}' to '{new_value}'" ) ;
586
- if self . context . variables . contains_key ( name) {
587
- return Err ( DscError :: Validation ( format ! ( "Variable '{name}' defined mnore than once" ) ) ) ;
588
- }
589
-
590
582
self . context . variables . insert ( name. to_string ( ) , new_value) ;
591
583
}
592
584
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments