Display private flavors in server list
Update the code so that "openstack server list --all" also displays the names of private flavors. Change-Id: I4804fcd905eaf67b1ad9b461084eaf0caa820d2f Closes-Bug: #1742453
This commit is contained in:
		@@ -1162,7 +1162,7 @@ class ListServer(command.Lister):
 | 
			
		||||
        # "Flavor Name" is not crucial, so we swallow any exceptions.
 | 
			
		||||
        if not parsed_args.no_name_lookup:
 | 
			
		||||
            try:
 | 
			
		||||
                flavors_list = compute_client.flavors.list()
 | 
			
		||||
                flavors_list = compute_client.flavors.list(is_public=None)
 | 
			
		||||
                for i in flavors_list:
 | 
			
		||||
                    flavors[i.id] = i
 | 
			
		||||
            except Exception:
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										6
									
								
								releasenotes/notes/bug-1742453-ae4be6de90a3ae1d.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								releasenotes/notes/bug-1742453-ae4be6de90a3ae1d.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
---
 | 
			
		||||
fixes:
 | 
			
		||||
  - |
 | 
			
		||||
    The ``server list --all`` command now resolves non-public flavor names,
 | 
			
		||||
    too, so that the ``Flavor`` column will be properly populated.
 | 
			
		||||
    [Bug `1742453 <https://bugs.launchpad.net/bugs/1742453>`_]
 | 
			
		||||
		Reference in New Issue
	
	Block a user