Uploaded image for project: 'Data Collection, Analytics, and Events'
  1. Data Collection, Analytics, and Events
  2. DCAEGEN2-363

Missing key in dockerplugin throws Exception with no clue where the error occurs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Beijing Release
    • Amsterdam Release
    • None
    • dcaegen2/platform/plugins/docker/dockerplugin/tasks.py

      When keys are missing, dockerplugin code throws exceptions.

      Example from dockerplugin/tasks.py, _update_delivery_url() module:

                  path = dr_sub["route"]

      (Many other places too.)  Cannot assume keys will be in Consul, or that dictionaries in Consul have keys, or in this case that keys will be in blueprints.

            ts862m ts862m
            ts862m ts862m
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: