summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrebortg <github@ghlr.de>2020-11-27 20:10:44 +0100
committerrebortg <github@ghlr.de>2020-11-27 20:10:44 +0100
commitc4b2276ec861a23edba12541eb39b27891f5d057 (patch)
tree19ddba54ec1153c5f12a9c4a600bfde4b9a16dcd
parentbee2a84c89fc24a54b3687027ff0ed9dd951082f (diff)
downloadvyos-documentation-c4b2276ec861a23edba12541eb39b27891f5d057.tar.gz
vyos-documentation-c4b2276ec861a23edba12541eb39b27891f5d057.zip
coverage: add 'set' detection
-rw-r--r--docs/_ext/vyos.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/docs/_ext/vyos.py b/docs/_ext/vyos.py
index cc408784..4b4b1a89 100644
--- a/docs/_ext/vyos.py
+++ b/docs/_ext/vyos.py
@@ -297,16 +297,6 @@ class CfgInclude(Directive):
return codeblock.run()
new_include_lines = []
- var_value0 = self.options.get('var0', '')
- var_value1 = self.options.get('var1', '')
- var_value2 = self.options.get('var2', '')
- var_value3 = self.options.get('var3', '')
- var_value4 = self.options.get('var4', '')
- var_value5 = self.options.get('var5', '')
- var_value6 = self.options.get('var6', '')
- var_value7 = self.options.get('var7', '')
- var_value8 = self.options.get('var8', '')
- var_value9 = self.options.get('var9', '')
for line in include_lines:
for i in range(10):
value = self.options.get(f'var{i}','')
@@ -436,7 +426,7 @@ class CfgCmdDirective(CmdDirective):
def strip_cmd(cmd):
- #cmd = re.sub('set','',cmd)
+ cmd = re.sub('set','',cmd)
cmd = re.sub('\s\|\s','',cmd)
cmd = re.sub('<\S*>','',cmd)
cmd = re.sub('\[\S\]','',cmd)