mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-11-04 12:18:17 +00:00 
			
		
		
		
	Added recognition of option_kv
This commit is contained in:
		@@ -65,7 +65,7 @@ class TestVariableDefinitions(unittest.TestCase):
 | 
			
		||||
                            set_fact_indent = indent
 | 
			
		||||
                            continue
 | 
			
		||||
                        if in_set_fact:
 | 
			
		||||
                            if indent > set_fact_indent:
 | 
			
		||||
                            if indent > set_fact_indent and stripped.strip():
 | 
			
		||||
                                m = self.mapping_key.match(stripped)
 | 
			
		||||
                                if m:
 | 
			
		||||
                                    self.defined.add(m.group(1))
 | 
			
		||||
@@ -78,6 +78,9 @@ class TestVariableDefinitions(unittest.TestCase):
 | 
			
		||||
                            vars_block_indent = indent
 | 
			
		||||
                            continue
 | 
			
		||||
                        if in_vars_block:
 | 
			
		||||
                            # skip blank lines within vars block
 | 
			
		||||
                            if not stripped.strip():
 | 
			
		||||
                                continue
 | 
			
		||||
                            if indent > vars_block_indent:
 | 
			
		||||
                                m = self.mapping_key.match(stripped)
 | 
			
		||||
                                if m:
 | 
			
		||||
@@ -135,4 +138,4 @@ class TestVariableDefinitions(unittest.TestCase):
 | 
			
		||||
            )
 | 
			
		||||
 | 
			
		||||
if __name__ == '__main__':
 | 
			
		||||
    unittest.main()
 | 
			
		||||
    unittest.main()
 | 
			
		||||
		Reference in New Issue
	
	Block a user