summaryrefslogtreecommitdiffstats
path: root/news_wizard
diff options
context:
space:
mode:
Diffstat (limited to 'news_wizard')
-rw-r--r--news_wizard/news.wiz2
-rw-r--r--news_wizard/scripts/Newsconf.pm5
2 files changed, 6 insertions, 1 deletions
diff --git a/news_wizard/news.wiz b/news_wizard/news.wiz
index 3b2863b1..8cf5dcc5 100644
--- a/news_wizard/news.wiz
+++ b/news_wizard/news.wiz
@@ -14,7 +14,6 @@
name="newsServer"
comment="The host name of the news server"
shellVariable="wiz_news_server"
- defaultValue="news.provider.com"
valueIsTranslated="false"
>
</Variable>
@@ -86,6 +85,7 @@
name="freetext1"
comment="Host name input field"
variableName="newsServer"
+ fillfunc="get_server"
helpText="News Server Name:"
editable="true"
>
diff --git a/news_wizard/scripts/Newsconf.pm b/news_wizard/scripts/Newsconf.pm
index 2ec5675d..55e99729 100644
--- a/news_wizard/scripts/Newsconf.pm
+++ b/news_wizard/scripts/Newsconf.pm
@@ -20,6 +20,11 @@ sub normalize_freq {
$freq;
}
+sub get_server {
+ my %mdk = Vareqval->get("/etc/leafnode/config");
+ $mdk{server};
+}
+
sub normalize_server {
my ($server) = @_;