7125173 js2ai: error: need more than 1 value to unpack.
authornirmal27<Nirmal.Agarwal@oracle.com>
Fri, 09 Mar 2012 01:54:53 -0700
changeset 1603 08318748ed0a
parent 1602 7d2ff25d8998
child 1604 148dc237e032
7125173 js2ai: error: need more than 1 value to unpack.
usr/src/cmd/js2ai/modules/conv.py
--- a/usr/src/cmd/js2ai/modules/conv.py	Wed Mar 07 23:14:23 2012 -0800
+++ b/usr/src/cmd/js2ai/modules/conv.py	Fri Mar 09 01:54:53 2012 -0700
@@ -19,7 +19,7 @@
 #
 # CDDL HEADER END
 #
-# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
 #
 """Conversion routines used to Solaris 10 convert rules and profile files to
 the xml format used by the Solaris installer
@@ -821,6 +821,10 @@
         being generated.
 
         """
+        # if device doesn't contain slice information 
+        # return false
+        if not 's' in device:
+            return False
         disk_name, slice_num = device.split("s")
         diskname_node = self.__fetch_diskname_node(disk_name)
         if diskname_node is None: