summaryrefslogtreecommitdiff
path: root/cloudinit/config
diff options
context:
space:
mode:
authorDaniel Watkins <oddbloke@ubuntu.com>2020-03-19 12:01:15 -0400
committerGitHub <noreply@github.com>2020-03-19 12:01:15 -0400
commitade47866aa2f81ab0f3baabbb1fc1e484abdb741 (patch)
tree0c28ae27861335a73b035ad68d506cc4ab3bcdb5 /cloudinit/config
parent9db87379b5c04f4c9662eaf81390e702ea63b8b3 (diff)
downloadvyos-cloud-init-ade47866aa2f81ab0f3baabbb1fc1e484abdb741.tar.gz
vyos-cloud-init-ade47866aa2f81ab0f3baabbb1fc1e484abdb741.zip
cloudinit/tests: remove unneeded with_logs configuration (#263)
These classes don't use `self.logs` anywhere in their body, so we can remove the `with_logs = True` setting from them. These instances were found using astpath[0], with the following invocation: astpath "//Name[@id='with_logs' and not(ancestor::ClassDef//Attribute[@attr='logs'])]" [0] https://github.com/hchasestevens/astpath
Diffstat (limited to 'cloudinit/config')
-rw-r--r--cloudinit/config/tests/test_disable_ec2_metadata.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/cloudinit/config/tests/test_disable_ec2_metadata.py b/cloudinit/config/tests/test_disable_ec2_metadata.py
index 67646b03..823917c7 100644
--- a/cloudinit/config/tests/test_disable_ec2_metadata.py
+++ b/cloudinit/config/tests/test_disable_ec2_metadata.py
@@ -15,8 +15,6 @@ DISABLE_CFG = {'disable_ec2_metadata': 'true'}
class TestEC2MetadataRoute(CiTestCase):
- with_logs = True
-
@mock.patch('cloudinit.config.cc_disable_ec2_metadata.util.which')
@mock.patch('cloudinit.config.cc_disable_ec2_metadata.util.subp')
def test_disable_ifconfig(self, m_subp, m_which):