I get an output of a command like below in str:
Group Name: STI IP: v4 Comment:
Group Items: 2 Type: User-defined
Members: "vm-1" "vm-2"
I want to be able to convert it into a dictionary so that I get a key-value pair like below:
{"Group Name": "STI", "IP": "v4", "Comment": "", "Group Items": "2", "Type": "User-defined", "Members": '"vm-1" "vm-2"'}
How to achieve the same?
The output got squeezed when I pasted it here, so attaching snippet of the same: