|
|
@ -44,8 +44,7 @@ basepresent="$(cat "$__object/explorer/basepresent")" |
|
|
|
if [ "$state" = "present" ]; then |
|
|
|
if [ "$state" = "present" ]; then |
|
|
|
if [ "$basepresent" = "NONE" ]; then |
|
|
|
if [ "$basepresent" = "NONE" ]; then |
|
|
|
# IPv6 fix |
|
|
|
# IPv6 fix |
|
|
|
echo "${__target_host}" | grep -q -E '^[0-9a-fA-F:]+$' |
|
|
|
if $(echo "${__target_host}" | grep -q -E '^[0-9a-fA-F:]+$') |
|
|
|
if [ $? -eq 0 ] |
|
|
|
|
|
|
|
then |
|
|
|
then |
|
|
|
my_target_host="[${__target_host}]" |
|
|
|
my_target_host="[${__target_host}]" |
|
|
|
else |
|
|
|
else |
|
|
|