ITRS-Group / cordial

Cordial comprises a set of interrelated programs, integrations, libraries and packages for Geneos, principally written in Go.
Other
7 stars 0 forks source link

When passing a template that already exists during add gateway, it's overwriting the file with itself #169

Closed alaguilles closed 1 year ago

alaguilles commented 1 year ago

Sample command used: geneos add gateway TEST_GATEWAY_01 -T custom.gateway.setup.xml.gotmpl

pgalbavy-itrs commented 1 year ago

fixed in next commit (will be in v1.7.1 patch release):

$ ./geneos add gateway TEST_GATEWAY_01 -T ~/geneos/gateway/templates/gateway.setup.xml.gotmpl 
import skipped, source and destination are the same file: "/home/peter/geneos/gateway/templates/gateway.setup.xml.gotmpl"
certificate created for gateway "TEST_GATEWAY_01" (expires 2024-07-18 00:00:00 +0000 UTC)
gateway "TEST_GATEWAY_01" added, port 7038