Skip to content

Commit

Permalink
Merge pull request #361 from svtkachenko/update_sv
Browse files Browse the repository at this point in the history
Removed overriden read method for Smart Variable
  • Loading branch information
oshtaier committed Jan 25, 2017
2 parents 04ef85f + b3073c5 commit 26c0239
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
12 changes: 0 additions & 12 deletions nailgun/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -4735,18 +4735,6 @@ def __init__(self, server_config=None, **kwargs):
}
super(SmartVariable, self).__init__(server_config, **kwargs)

def read(self, entity=None, attrs=None, ignore=None):
"""Fetch as many attributes as possible for this entity.
Do not read the ``variable_type`` attribute. For more information, see
`Bugzilla #1375881
<https://bugzilla.redhat.com/show_bug.cgi?id=1375881>`_.
"""
if ignore is None:
ignore = set()
ignore.add('variable_type')
return super(SmartVariable, self).read(entity, attrs, ignore)

def create_payload(self):
"""Wrap submitted data within an extra dict."""
return {u'smart_variable': super(SmartVariable, self).create_payload()}
Expand Down
1 change: 0 additions & 1 deletion tests/test_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,6 @@ def test_ignore_arg_v1(self):
for entity, ignored_attrs in (
(entities.Errata,
{'content_view_version', 'environment', 'repository'}),
(entities.SmartVariable, {'variable_type'}),
(entities.Subnet, {'discovery'}),
(entities.User, {'password'}),
):
Expand Down

0 comments on commit 26c0239

Please sign in to comment.