Skip to content

Commit ea6d630

Browse files
author
OpenShift Bot
authored
Merge pull request #7837 from jayunit100/cfg
Merged by openshift-bot
2 parents 09a2910 + 52853ef commit ea6d630

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hack/test-cmd.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ os::cmd::expect_success_and_text "cat ${MASTER_CONFIG_DIR}/master-config.yaml" '
244244
os::cmd::expect_success_and_text "cat ${BASETMPDIR}/atomic.local.config/master/master-config.yaml" 'disabledFeatures: null'
245245

246246
# test client not configured
247-
os::cmd::expect_failure_and_text "oc get services" 'No configuration file found, please login'
247+
os::cmd::expect_failure_and_text "oc get services" 'Missing or incomplete configuration info. Please login'
248248
unused_port="33333"
249249
# setting env bypasses the not configured message
250250
os::cmd::expect_failure_and_text "KUBERNETES_MASTER=http://${API_HOST}:${unused_port} oc get services" 'did you specify the right host or port'

pkg/cmd/util/clientcmd/factory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func (c defaultingClientConfig) ClientConfig() (*restclient.Config, error) {
130130
return icc, nil
131131
}
132132

133-
return nil, fmt.Errorf(`No configuration file found, please login or point to an existing file:
133+
return nil, fmt.Errorf(`Missing or incomplete configuration info. Please login or point to an existing, complete config file:
134134
135135
1. Via the command-line flag --config
136136
2. Via the KUBECONFIG environment variable

0 commit comments

Comments
 (0)