Add KVM Value which includes a comma

yassertaeima
Participant III

From the KVM UI, how can we add a keyvalue pair which includes comma

For example:

Key=Key1

Value=TheValuewith,inThemiddle

When we attempted to do this from the UI, this resulted in the value being split into an array of values

Value[0]=TheValuewith

Value[1]=inThemiddle

How can we escape the comma in the UI? we tried \, by entering TheValuewith\,inThemiddle

but that didn't work.

Solved Solved
0 4 715
1 ACCEPTED SOLUTION

Hi @Yasser Taeima - try removing the index attribute from the Get operation and see if that works

View solution in original post

4 REPLIES 4

Hi @Yasser Taeima - try removing the index attribute from the Get operation and see if that works

It works, but our main objective was to use the indexing feature of the Get operation, but have the ability to escape the comma if the index value included a comma.

We will go with not using the indexing and build our own splitter instead, but it would be nice to have

Hi @Yasser Taeima, I was able to create KVM in public cloud instance with comma in value (kvmwithcomma.png). Get API call returned value with comma (without getting indexed as posted)kvmwithcommagetapi.png

Thanks,

Thank, but we are seeing the issue when we use a KVM Policy not from the kvm API.