Closed matthew-on-git closed 6 years ago
@matthewmdn Your issue is about how to handle the data group special characters. Please allow me to reach out to F5 REST API team, and will get back to you.
@matthewmdn The workaround is to add an extra space to the end of the value, in your case: { 'data' => '\ ', 'name' => '\ ' }, { 'data' => '| ', 'name' => '| ' },
thanks
Great! I'll give it a try
That did it
Excellent
the error when running
puppet device -v --user=root
:The relevant code is:
f5_datagroup { '/Common/test2_bl_escape_characters': ensure => 'present', type => 'string', records => [ { 'data' => '!', 'name' => '!' }, { 'data' => '$', 'name' => '$' }, { 'data' => ';', 'name' => ';' }, { 'data' => '<', 'name' => '<' }, { 'data' => '>', 'name' => '>' }, { 'data' => '\\', 'name' => '\\' }, { 'data' => '\|', 'name' => '\|' } ], }
From what it looks like, I need to escape the | with something. I've tried
'|'
and'\|'
both. I got the code from exporting an existing datagroup withpuppet resource
, so it should "just work".