7055372 Installation with very long host name failed at checkpoint apply-sysconfig
authorDrew Fisher <drew.fisher@oracle.com>
Wed, 09 May 2012 07:53:34 -0600
changeset 1672 6e0bd17ca3f5
parent 1671 c4ff9d78adc6
child 1673 7ad5c8725293
7055372 Installation with very long host name failed at checkpoint apply-sysconfig 7074867 truncated string "System Configuration Interactive (SCI) tool will be" extracted to message source 7166308 sysconfig LDAP profile screen should default to profile name field not the 2nd field on screen
usr/src/cmd/system-config/__init__.py
usr/src/cmd/system-config/nameservice.py
usr/src/cmd/system-config/profile/system_info.py
--- a/usr/src/cmd/system-config/__init__.py	Wed May 09 08:51:52 2012 +0200
+++ b/usr/src/cmd/system-config/__init__.py	Wed May 09 07:53:34 2012 -0600
@@ -880,8 +880,8 @@
             sys.exit(SU_FATAL_ERR)
 
         print _("Interactive configuration requested.")
-        print _("System Configuration Interactive (SCI) tool will be" +
-            " launched on console.")
+        print _("System Configuration Interactive (SCI) tool will be "
+                "launched on console.")
 
         cmd = [TTY]
         try:
--- a/usr/src/cmd/system-config/nameservice.py	Wed May 09 08:51:52 2012 +0200
+++ b/usr/src/cmd/system-config/nameservice.py	Wed May 09 07:53:34 2012 -0600
@@ -477,7 +477,7 @@
                                         text=self.nameservice.ldap_search_base,
                                         error_win=self.main_win.error_line)
         self.main_win.do_update()
-        self.center_win.activate_object(self.ldap_ip)
+        self.center_win.activate_object(self.ldap_profile)
 
     def validate(self):
         validate_ldap_profile(self.ldap_profile.get_text())
--- a/usr/src/cmd/system-config/profile/system_info.py	Wed May 09 08:51:52 2012 +0200
+++ b/usr/src/cmd/system-config/profile/system_info.py	Wed May 09 07:53:34 2012 -0600
@@ -327,7 +327,9 @@
         smf_pg_config = SMFPropertyGroup('config')
         smf_instance_system_identity.insert_children([smf_pg_config])
 
-        smf_pg_config.add_props(nodename=self.hostname)
+        # force the property type to 'astring'
+        smf_pg_config.setprop(name="nodename", ptype="astring",
+                              value=self.hostname)
 
         #
         # fmri: