From c4b2276ec861a23edba12541eb39b27891f5d057 Mon Sep 17 00:00:00 2001 From: rebortg Date: Fri, 27 Nov 2020 20:10:44 +0100 Subject: coverage: add 'set' detection --- docs/_ext/vyos.py | 12 +----------- 1 file changed, 1 insertion(+), 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) -- cgit v1.2.3