Skip to content

Commit

Permalink
fix multiple = in options
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodong-ji committed Aug 10, 2024
1 parent 9bb329d commit d70d6f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion diag_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ def _input_parameters_scene(self, option, opt_str, value, parser):
ROOT_IO.warn(f"input_parameters option {value} is not json.")

# input_parameters option is key=val format
key, val = value.split('=')
key, val = value.split('=', 1)
if key is None or key == "":
return
m = self._input_parameters_scene_set(key, val)
Expand Down Expand Up @@ -931,6 +931,8 @@ def init(self, cmd, args):

def _do_command(self, obdiag):
Util.set_option(self.opts, 'input_parameters', self.scene_input_param_map)
print("self.opts ================================>>>")
print(Util.get_option(self.opts, 'input_parameters'))
return obdiag.rca_run(self.opts)


Expand Down

0 comments on commit d70d6f8

Please sign in to comment.