summaryrefslogtreecommitdiffstats
path: root/src/lib/kadm5/unit-test/api.current/init-v2.exp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/kadm5/unit-test/api.current/init-v2.exp')
-rw-r--r--src/lib/kadm5/unit-test/api.current/init-v2.exp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lib/kadm5/unit-test/api.current/init-v2.exp b/src/lib/kadm5/unit-test/api.current/init-v2.exp
index 656f146cba..a364b9c140 100644
--- a/src/lib/kadm5/unit-test/api.current/init-v2.exp
+++ b/src/lib/kadm5/unit-test/api.current/init-v2.exp
@@ -9,10 +9,8 @@ if ![info exists RESOLVE] {
proc get_hostname { } {
global RESOLVE
global hostname
- global localhostname
- global domain
- if {[info exists hostname] && [info exists localhostname]} {
+ if {[info exists hostname]} {
return 1
}
@@ -30,12 +28,9 @@ proc get_hostname { } {
}
close $file
catch "exec rm -f myname" exec_output
- regexp "^(\[^.\]*)\.(.*)$" $hostname foo localhostname domain
set hostname [string tolower $hostname]
- set localhostname [string tolower $localhostname]
- set domain [string tolower $domain]
- verbose "hostname: $hostname; localhostname: $localhostname; domain $domain"
+ verbose "hostname: $hostname"
return 1
}