Modified API calls in os usage
We usually call v3 keystoneclient APIs for V2 OSC, this patch modified 'tenants' to 'projects'. Change-Id: Idbf74f098cd1386aa675c081480b89bbc11c8534
This commit is contained in:
		@@ -89,7 +89,7 @@ class ListUsage(command.Lister):
 | 
			
		||||
        # Cache the project list
 | 
			
		||||
        project_cache = {}
 | 
			
		||||
        try:
 | 
			
		||||
            for p in self.app.client_manager.identity.tenants.list():
 | 
			
		||||
            for p in self.app.client_manager.identity.projects.list():
 | 
			
		||||
                project_cache[p.id] = p
 | 
			
		||||
        except Exception:
 | 
			
		||||
            # Just forget it if there's any trouble
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user