ValueError: not enough values to unpack

Bug #1961368 reported by Linda Guo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
charm-homer-dashboard
Fix Released
Medium
Linda Guo

Bug Description

juju config homer-dashboard additional_sites='["MAAS|http://1.1.1.11/MAAS/"]'

unit-homer-dashboard-0: 05:47:03 ERROR unit.homer-dashboard/0.juju-log Uncaught exception while in charm code:
Traceback (most recent call last):
  File "./src/charm.py", line 252, in <module>
    main(HomerDashboardCharm, use_juju_for_storage=True)
  File "/var/lib/juju/agents/unit-homer-dashboard-0/charm/venv/ops/main.py", line 406, in main
    _emit_charm_event(charm, dispatcher.event_name)
  File "/var/lib/juju/agents/unit-homer-dashboard-0/charm/venv/ops/main.py", line 140, in _emit_charm_event
    event_to_emit.emit(*args, **kwargs)
  File "/var/lib/juju/agents/unit-homer-dashboard-0/charm/venv/ops/framework.py", line 278, in emit
    framework._emit(event)
  File "/var/lib/juju/agents/unit-homer-dashboard-0/charm/venv/ops/framework.py", line 722, in _emit
    self._reemit(event_path)
  File "/var/lib/juju/agents/unit-homer-dashboard-0/charm/venv/ops/framework.py", line 767, in _reemit
    custom_handler(event)
  File "./src/charm.py", line 95, in _on_config_changed
    self._additional_sites_changed()
  File "./src/charm.py", line 135, in _additional_sites_changed
    name, url, group = site.split("|")
ValueError: not enough values to unpack (expected 3, got 2)
unit-homer-dashboard-0: 05:47:03 ERROR juju.worker.uniter.operation hook "config-changed" (via hook dispatching script: dispatch) failed: exit status 1

Related branches

Linda Guo (lihuiguo)
Changed in charm-homer-dashboard:
importance: Undecided → Medium
Linda Guo (lihuiguo)
Changed in charm-homer-dashboard:
status: New → In Progress
assignee: nobody → Linda Guo (lihuiguo)
Eric Chen (eric-chen)
Changed in charm-homer-dashboard:
status: In Progress → Fix Committed
Eric Chen (eric-chen)
Changed in charm-homer-dashboard:
milestone: none → 22.08
Changed in charm-homer-dashboard:
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.