mirror of
				https://github.com/ansible-collections/community.general.git
				synced 2025-10-25 05:23:58 -07:00 
			
		
		
		
	Cast version to string for comparisons
This commit is contained in:
		
					parent
					
						
							
								8daaa75027
							
						
					
				
			
			
				commit
				
					
						ccd49201b1
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -335,7 +335,7 @@ class ModuleValidator(Validator): | |||
|             return | ||||
| 
 | ||||
|         try: | ||||
|             version_added = StrictVersion(doc.get('version_added', '0.0')) | ||||
|             version_added = StrictVersion(str(doc.get('version_added', '0.0'))) | ||||
|         except ValueError: | ||||
|             self.errors.append('version_added is not a valid version ' | ||||
|                                'number: %s' % version_added) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue