Skip to content

Commit

Permalink
virt-manifest: move flag defaults to const
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Polednik <[email protected]>
  • Loading branch information
mpolednik committed Nov 29, 2017
1 parent 9669c3d commit 5784775
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/virt-manifest/virt-manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ const (

// Default address that virt-manifest listens on.
defaultHost = "0.0.0.0"

libvirtUri = "qemu:///system"
)

type virtManifestApp struct {
Expand Down Expand Up @@ -85,7 +87,7 @@ func (app *virtManifestApp) AddFlags() {

app.AddCommonFlags()

flag.StringVar(&app.LibvirtUri, "libvirt-uri", "qemu:///system",
flag.StringVar(&app.LibvirtUri, "libvirt-uri", libvirtUri,
"Libvirt connection string")

flag.Parse()
Expand Down

0 comments on commit 5784775

Please sign in to comment.