aboutsummaryrefslogtreecommitdiffstats
path: root/gsxcl
diff options
context:
space:
mode:
Diffstat (limited to 'gsxcl')
-rwxr-xr-xgsxcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/gsxcl b/gsxcl
index 7bb0ee6..badf7be 100755
--- a/gsxcl
+++ b/gsxcl
@@ -72,7 +72,7 @@ switch( $noun )
}
}
-$gsx = new GsxLib( $opts['s'], $opts['u'], $opts['p'], $environment, $region );
+$gsx = GsxLib::getInstance( $opts['s'], $opts['u'], $opts['p'], $environment, $region );
if( !isset( $opts['d'] )) {
$data = `/usr/sbin/system_profiler SPHardwareDataType | awk '/Serial Number/ {print $4}'`;
@@ -89,7 +89,7 @@ switch( $noun ) {
case 'warranty':
switch( $verb ) {
case 'status':
- $result = $gsx->warrantyStatus( $data );
+ $result = $gsx->warrantyStatus( $data['serialNumber'] );
break;
}