# HG changeset patch # User Susan Sohn # Date 1343853241 25200 # Node ID 820b90ac476b0b89c21f64d20429f4ace8a09125 # Parent 5aaebb87ff6f025b3419c36c852ba2403b2333d2 7187126 Creating AI service from pkg(5) results in traceback diff -r 5aaebb87ff6f -r 820b90ac476b usr/src/cmd/installadm/installadm.py --- a/usr/src/cmd/installadm/installadm.py Mon Jul 30 13:06:36 2012 -0700 +++ b/usr/src/cmd/installadm/installadm.py Wed Aug 01 13:34:01 2012 -0700 @@ -24,6 +24,7 @@ ''' installadm - administration of AI services, manifests, and clients ''' +import gettext import logging import sys import traceback @@ -214,9 +215,11 @@ Returns: The return from the invoked sub-command. - 4 if VersionError encountered + 3 if VersionError encountered ''' + gettext.install('solaris_install_installadm', '/usr/share/locale') + # sub_cmds is a dictionary. The value for each subcommand key # is a tuple consisting of the method to call to invoke the # subcommand and the method to call to get usage for the subcommand.