IBM / lmctl

Cloud Pak for Network Automation (CP4NA) (previously ALM/TNCO) command line tool
Apache License 2.0
4 stars 19 forks source link

whoami fails when lmctl is initially installed #180

Open dvaccarosenna opened 1 year ago

dvaccarosenna commented 1 year ago

Describe the bug After installing LMCTL running the whoami command results in an error:

Error: Failed to load configuration - Config file could not be found at default location "/Users/dan/.lmctl/config.yaml" or from environment variable LMCONFIG

Although this is "as designed", it would better for the whoami command printed a user friendly message that explained how to initiate configuration for the first time.

To Reproduce Steps to reproduce the behaviour:

  1. Install LMCTL (ensure no ~/.lmctl directory exists on your machine)
  2. Run lmctl whoami
  3. See error

Desktop (please complete the following information):