airshipctl/cmd/baremetal
Drew Walters 4b6d2328de Fix power command host selectors
Both host selectors are always passed to create a manager when a power
command is invoked; however, an empty label selector will include all
hosts.

This change adds a helper function to determine which selectors will be
used based on the flags passed to airshipctl. When a flag is not used, a
selector is not created for it.

Change-Id: I48684cdf6d16073bf85468f6286a22a0aba602f7
Signed-off-by: Drew Walters <andrew.walters@att.com>
2020-05-01 16:59:16 +00:00
..
testdata/TestBaremetalGoldenOutput Add baremetal ejectmedia command 2020-04-28 23:10:36 +00:00
baremetal_test.go Fix power command host selectors 2020-05-01 16:59:16 +00:00
baremetal.go Fix power command host selectors 2020-05-01 16:59:16 +00:00
ejectmedia.go Fix power command host selectors 2020-05-01 16:59:16 +00:00
isogen.go Increase code coverage 2020-04-28 13:46:06 -05:00
poweroff.go Fix power command host selectors 2020-05-01 16:59:16 +00:00
poweron.go Fix power command host selectors 2020-05-01 16:59:16 +00:00
powerstatus.go Fix power command host selectors 2020-05-01 16:59:16 +00:00
reboot.go Fix power command host selectors 2020-05-01 16:59:16 +00:00
remotedirect.go Increase code coverage 2020-04-28 13:46:06 -05:00