Suppress spurious lint failure

This is failing because elsewhere in the test module the get_top()
member function returns None, but this is done in a highstate attribute
which is cleaned up in the tearDown and established as a fresh
salt.state.HighState instance in the setUp.
This commit is contained in:
Erik Johnson 2018-05-16 15:13:54 -05:00
parent 3b449f11fc
commit d0243e8f23
No known key found for this signature in database
GPG key ID: 5E5583C437808F3F

View file

@ -156,7 +156,7 @@ class HighStateTestCase(TestCase, AdaptedConfigurationTestCaseMixin):
# Manually compile the high data. We don't have to worry about all of
# the normal error checking we do here since we know that all the SLS
# files exist and there is no whitelist/blacklist being used.
top = self.highstate.get_top()
top = self.highstate.get_top() # pylint: disable=assignment-from-none
matches = self.highstate.top_matches(top)
high, _ = self.highstate.render_highstate(matches)
ret = salt.state.find_sls_ids('issue-47182.stateA.newer', high)