diff --git a/src/libvirt-admin.c b/src/libvirt-admin.c index 859f937801..4bf29b14a4 100644 --- a/src/libvirt-admin.c +++ b/src/libvirt-admin.c @@ -167,7 +167,7 @@ virAdmGetDefaultURI(virConfPtr conf, char **uristr) return -1; VIR_DEBUG("Using LIBVIRT_ADMIN_DEFAULT_URI '%s'", *uristr); } else { - if (virConfGetValueString(conf, "admin_uri_default", uristr) < 0) + if (virConfGetValueString(conf, "uri_default", uristr) < 0) return -1; if (*uristr) { diff --git a/tools/virt-admin.pod b/tools/virt-admin.pod index 2765bc5cb0..2199038e2f 100644 --- a/tools/virt-admin.pod +++ b/tools/virt-admin.pod @@ -127,7 +127,7 @@ Will print the current directory. (Re)-Connect to a daemon's administrating server. The I parameter specifies how to connect to the administrating server. -If I or I (see below) were set, +If I or I (see below) were set, I is automatically issued every time a command that requires an active connection is executed. Note that this only applies if there is no connection at all or there is an inactive one. @@ -137,8 +137,9 @@ To find the currently used URI, check the I command documented below. =item B Prints the administrating server canonical URI, can be useful in shell mode. If -no I was specified, neither I or -I were set, libvirtd:///system is used. +no I was specified, neither I environment +variable nor I option (libvirt-admin.conf) were set, +libvirtd:///system is used. =back