Skip to content

get_agents returns an invalid json with two entries for osDescription #268

Closed
@atbagga

Description

@atbagga

As reported here - Azure/azure-devops-cli-extension#755

The get_agents function returns a json object as below -

[                                                          
  {                                                        
    "accessPoint": "CodexAccessMapping",                   
    "assignedAgentCloudRequest": null,                     
    "assignedRequest": null,                               
    "authorization": {                                     
      "authorizationUrl": null,                            
      ..
       ..
      }                                                    
    },                                                     
    "createdOn": "2019-09-11T06:38:19.797000+00:00",       
    "enabled": true,                                       
    "id": 89,                                              
    "lastCompletedRequest": null,                          
    "maxParallelism": 1,                                   
    "name": "ATBAGGA-Agent",                             
    "oSDescription": null,                                 
    "osDescription": "Microsoft Windows 10.0.18362 ",      
    "pendingUpdate": null,                                 
    "properties": null,                                    
    "provisioningState": "Provisioned",                    
    "status": "online",                                    
    "statusChangedOn": null,                               
    "systemCapabilities": null,                            
    "userCapabilities": null,                              
    "version": "2.155.1"                                   
  }                                                        
]                                                          

The issue is due to different case in key (osDescription) returned by the API than the object in python client here where it is (oSDescription).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions