Create Target: make_unique?


#1

Hello,

i’m trying to pass make_unique into my create_target xml request.
However, I always get an EOF.
Ideas?

‘bogus element make_unique’: <create_target><name><make_unique>%s</name><hosts>%s</hosts>%s</create_target>


#2

The code above contains invalid xml. Could you try closing the make_unique element with passing <make_unique/> instead?


#3

Hi!

<create_target><make_unique/><name>yyyy</name><hosts>xxxx</hosts></create_target> will result in Bogus element: make_unique.

<create_target><name><make_unique/>yyyy</name><hosts>xxxx</hosts></create_target> will result in Target exists already.


#4

I am sorry to say the make_unique feature seems to be broken at the moment. We have created a ticket to fix the behavior.


#5

Thank you, can you refer to the ticket URL?


#6

I am sorry the ticket isn’t public.


#7

@bricks when will this be fixed?


#8

<make_unique/> got removed last week from the next version of gvmd in GVM 10.

Instead you could include something like a timestamp into the target name.