mirror of
				https://github.com/fog/fog.git
				synced 2022-11-09 13:51:43 -05:00 
			
		
		
		
	[core] use logger throughout for warnings
This commit is contained in:
		
							parent
							
								
									e52ae34962
								
							
						
					
					
						commit
						76c0f11670
					
				
					 52 changed files with 84 additions and 100 deletions
				
			
		| 
						 | 
				
			
			@ -27,10 +27,7 @@ module Fog
 | 
			
		|||
        # {Amazon API Reference}[http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-RevokeSecurityGroupIngress.html]
 | 
			
		||||
        def revoke_security_group_ingress(group_name, options = {})
 | 
			
		||||
          if group_name.is_a?(Hash)
 | 
			
		||||
            location = caller.first
 | 
			
		||||
            warning = "[yellow][WARN] Fog::AWS::Compute#revoke_security_group_ingress now requires the 'group_name' parameter. Only specifying an options hash is now deprecated"
 | 
			
		||||
            warning << " [light_black](" << location << ")[/] "
 | 
			
		||||
            Formatador.display_line(warning)
 | 
			
		||||
            Fog::Logger.warning("Fog::AWS::Compute#revoke_security_group_ingress now requires the 'group_name' parameter. Only specifying an options hash is now deprecated [light_black](#{caller.first})[/]")
 | 
			
		||||
            options = group_name
 | 
			
		||||
            group_name = options['GroupName']
 | 
			
		||||
          end
 | 
			
		||||
| 
						 | 
				
			
			@ -48,10 +45,7 @@ module Fog
 | 
			
		|||
 | 
			
		||||
        def revoke_security_group_ingress(group_name, options = {})
 | 
			
		||||
          if group_name.is_a?(Hash)
 | 
			
		||||
            location = caller.first
 | 
			
		||||
            warning = "[yellow][WARN] Fog::AWS::Compute#revoke_security_group_ingress now requires the 'group_name' parameter. Only specifying an options hash is now deprecated"
 | 
			
		||||
            warning << " [light_black](" << location << ")[/] "
 | 
			
		||||
            Formatador.display_line(warning)
 | 
			
		||||
            Fog::Logger.warning("Fog::AWS::Compute#revoke_security_group_ingress now requires the 'group_name' parameter. Only specifying an options hash is now deprecated [light_black](#{caller.first})[/]")
 | 
			
		||||
            options = group_name
 | 
			
		||||
            group_name = options['GroupName']
 | 
			
		||||
          end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue