aboutsummaryrefslogtreecommitdiffstats
path: root/gsxcl
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@0x00.co>2013-01-12 10:28:50 +0200
committerFilipp Lepalaan <f@0x00.co>2013-01-12 10:28:50 +0200
commit7a46310b44d772a25ff775da4ea0b344ab7e1d0e (patch)
tree6f1317d0708ab37df73fc9f78464d41d60023bb8 /gsxcl
parent8578d726b575bcadfff9c1f590442e46b5069471 (diff)
downloadgsxlib-7a46310b44d772a25ff775da4ea0b344ab7e1d0e.tar.gz
gsxlib-7a46310b44d772a25ff775da4ea0b344ab7e1d0e.tar.bz2
gsxlib-7a46310b44d772a25ff775da4ea0b344ab7e1d0e.zip
Modified readme
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;
}