diff options
| author | Jeff Carr <[email protected]> | 2024-11-01 12:50:03 -0500 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-01 12:50:03 -0500 | 
| commit | 4fbd3ed51843be7cbe97e0fda6bb6cc9a4e15987 (patch) | |
| tree | a151420752d9863b0d459f9cd9d248a9090dc696 | |
| parent | fb9f42285dd9f2840566b71d05f4383a00cfd267 (diff) | |
things work againv0.1
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | argv.go | 1 | ||||
| -rw-r--r-- | main.go | 3 | 
2 files changed, 4 insertions, 0 deletions
@@ -31,6 +31,7 @@ type ImportXml struct {  	DomainName string   `arg:"--domain"                          help:"the virsh domain name"`  	Host       string   `arg:"--host"                            help:"the hypervisor hostname (optional)"`  	Delete     bool     `arg:"--delete"          default:"false" help:"delete the old xml after import"` +	Force      bool     `arg:"--force"           default:"false" help:"attempts to merge xml with existing protobuf"`  }  type args struct { @@ -78,6 +78,9 @@ func main() {  		log.Info("\n\nshould import here", argv.Start, "\n")  		log.Info("import", argv.Import.Host, argv.Import.DomainName)  		url := "/import?domainName=" +  argv.Import.DomainName +		if argv.Import.Force { +			url += "&force=true" +		}  		dumpStdout(url)  	}  }  | 
