diff --git a/qa/qa_config.py b/qa/qa_config.py index 6c5e27ea023a0370ef35ba1e1b032ed84e60a279..f85d940a422fa79f7c9c5b131a9a073c113691c2 100644 --- a/qa/qa_config.py +++ b/qa/qa_config.py @@ -70,24 +70,6 @@ class _QaInstance(object): return cls(name=data["name"], nicmac=nicmac) - def __getitem__(self, key): - """Legacy dict-like interface. - - """ - if key == "name": - return self.name - else: - raise KeyError(key) - - def get(self, key, default): - """Legacy dict-like interface. - - """ - try: - return self[key] - except KeyError: - return default - def Release(self): """Releases instance and makes it available again. @@ -137,26 +119,6 @@ class _QaNode(object): """ return cls(primary=data["primary"], secondary=data.get("secondary")) - def __getitem__(self, key): - """Legacy dict-like interface. - - """ - if key == "primary": - return self.primary - elif key == "secondary": - return self.secondary - else: - raise KeyError(key) - - def get(self, key, default): - """Legacy dict-like interface. - - """ - try: - return self[key] - except KeyError: - return default - def Use(self): """Marks a node as being in use.