From 0c7e2843ae4ae231b10e0ebda5d06fcc431521be Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Wed, 11 May 2011 22:09:43 -0700 Subject: Inhibit some tweakables from being in the all-tweakables list, and display undefined values better. --- pinyadmin/sbin/pinyconfig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pinyadmin/sbin') diff --git a/pinyadmin/sbin/pinyconfig b/pinyadmin/sbin/pinyconfig index 8496cc7..345e53f 100755 --- a/pinyadmin/sbin/pinyconfig +++ b/pinyadmin/sbin/pinyconfig @@ -24,7 +24,12 @@ if ( not defined $attr ) { my $tweakables = $config->all_tweakables; foreach my $t ( sort keys %$tweakables ) { - print "$t => " . $tweakables->{$t} . "\n"; + my $v = $tweakables->{$t}; + if ( defined $v ) { + print "$t => $v\n"; + } else { + print "$t undefined\n"; + }; }; } else { -- cgit v1.2.3