Commit d3860fd6 authored by Janis Streib's avatar Janis Streib

FIX: object index ambiguity

parent 0007833f
......@@ -38,7 +38,7 @@ class Loader(object):
"{scheme}://{base_host}{base_url}/cntl/data_type/list".format(scheme=self.api_scheme,
base_host=self.api_host,
base_url=self.api_base_url)).json()[0]}
self.api_objects = {k['name']: APIObject(__data_types__=self.data_types, **k) for k in self.sess.get(
self.api_objects = {f"{k['system']}.{k['name']}": APIObject(__data_types__=self.data_types, **k) for k in self.sess.get(
"{scheme}://{base_host}{base_url}/wapi/object_type/list".format(scheme=self.api_scheme,
base_host=self.api_host,
base_url=self.api_base_url)).json()[0]}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment