Skip to content

Commit

Permalink
Usage text typo and README.md minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
niasar committed Nov 12, 2019
1 parent 86fdff4 commit 3612dbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This tool is what you need, just run `pve-hosts >> /etc/hosts` to get every PVE
## Build status
Master branch: [![Build Status](https://dev.azure.com/niasar/pve-hosts/_apis/build/status/niasar.pve-hosts?branchName=master)](https://dev.azure.com/niasar/pve-hosts/_build/latest?definitionId=2&branchName=master)

Latest release binary: [![Get latest binary](https://img.shields.io/badge/Version-1.2.1-green.svg)](https://github.com/niasar/pve-hosts/releases/latest/download/pve-hosts)
Latest release binary: [![Get latest binary](https://img.shields.io/badge/Version-1.2.3-green.svg)](https://github.com/niasar/pve-hosts/releases/latest/download/pve-hosts)

## Usage

Expand Down
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ import (
)

func main() {
//Setup flags
iface := flag.String("iface", "vmbr0", "network interface")
format := flag.String("format", "hosts", "output in ansible hosts definition format")
format := flag.String("format", "hosts", "output format (ansible or hosts)")
flag.Parse()
// Check is -output flag is acceptable
checkFormat(*format)
//Checking is pve cluster available (currently relying on /etc/pve/corosync.conf)
detectPveCluster()
fmt.Fprintln(os.Stderr, "Gathering info about cluster nodes...")
list := getNodeNamelist()
Expand Down

0 comments on commit 3612dbd

Please sign in to comment.