Remove bash-completion calls from base.py

This should not be here since this is client
library code, but it isn't needed anyhow since
this completion is handled from the shell code.

Closes-Bug: #1817782

Change-Id: I3e7ddbe4a50a66db8961a71d71592ce708320b0d
(cherry picked from commit 0707191d43)
This commit is contained in:
Eric Harney 2019-04-02 10:46:52 -04:00 committed by prashkre
parent 0eb4fc518e
commit 9c9e797d07

View File

@ -91,10 +91,6 @@ class Manager(common_base.HookableMixin):
except KeyError: except KeyError:
pass pass
# FIXME(eharney): This is probably a bug - we should only call
# completion_cache for the shell, not here.
with self.completion_cache('human_id', obj_class, mode="w"):
with self.completion_cache('uuid', obj_class, mode="w"):
items_new = [obj_class(self, res, loaded=True) items_new = [obj_class(self, res, loaded=True)
for res in data if res] for res in data if res]
if limit: if limit:
@ -330,8 +326,6 @@ class Manager(common_base.HookableMixin):
if return_raw: if return_raw:
return common_base.DictWithMeta(body[response_key], resp) return common_base.DictWithMeta(body[response_key], resp)
with self.completion_cache('human_id', self.resource_class, mode="a"):
with self.completion_cache('uuid', self.resource_class, mode="a"):
return self.resource_class(self, body[response_key], resp=resp) return self.resource_class(self, body[response_key], resp=resp)
def _delete(self, url): def _delete(self, url):