Client crashes if there are duplicated config keys in client.conf

Bug #1229200 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Client
Fix Released
Low
Geoff Teale

Bug Description

root@nsn7:~# grep computer_title /etc/landscape/client.conf
computer_title = nsn7
computer_title = nsn7
root@nsn7:~# landscape-client
Traceback (most recent call last):
  File "/usr/bin/landscape-client", line 18, in <module>
    sys.exit(run())
  File "/usr/lib/python2.7/dist-packages/landscape/watchdog.py", line 672, in run
    config.load(args)
  File "/usr/lib/python2.7/dist-packages/landscape/deployment.py", line 390, in load
    args, accept_nonexistent_config=accept_nonexistent_config)
  File "/usr/lib/python2.7/dist-packages/landscape/deployment.py", line 168, in load
    self.load_configuration_file(config_filename)
  File "/usr/lib/python2.7/dist-packages/landscape/deployment.py", line 206, in load_configuration_file
    config_obj = self._get_config_object()
  File "/usr/lib/python2.7/dist-packages/landscape/deployment.py", line 219, in _get_config_object
    config_obj = ConfigObj(config_source)
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 1230, in __init__
    self._load(infile, configspec)
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 1320, in _load
    raise error
configobj.DuplicateError: Duplicate keyword name at line 6.
root@nsn7:~#

Tags: defect

Related branches

tags: removed: kanban
Geoff Teale (tealeg)
Changed in landscape-client:
status: New → In Progress
Changed in landscape-client:
status: In Progress → Fix Committed
Changed in landscape-client:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.