openshift-evangelists / oc-cluster-wrapper

oc cluster up bash wrapper
Apache License 2.0
144 stars 72 forks source link

The status command doesn't show profile name after subsequent up. #27

Closed GrahamDumpleton closed 7 years ago

GrahamDumpleton commented 7 years ago

The status command doesn't show active profile.

$ oc-cluster status
oc cluster running. Current profile <unknown>

This appears to be when down after and down and then up.

The down removes $OPENSHIFT_HOME_DIR/active_profile, but the up for a existing profile doesn't re-instate the active_profile.

Need to add:

      # Create the profile markfile
      echo "${_profile}" > $OPENSHIFT_HOME_DIR/active_profile

to case where output:

    echo "[INFO] Running a previously created cluster"
GrahamDumpleton commented 7 years ago

Haha. Closing as fixed in newer version than I had.