diff options
author | Filipp Lepalaan <f@0x00.co> | 2013-01-12 10:28:50 +0200 |
---|---|---|
committer | Filipp Lepalaan <f@0x00.co> | 2013-01-12 10:28:50 +0200 |
commit | 7a46310b44d772a25ff775da4ea0b344ab7e1d0e (patch) | |
tree | 6f1317d0708ab37df73fc9f78464d41d60023bb8 /gsxcl | |
parent | 8578d726b575bcadfff9c1f590442e46b5069471 (diff) | |
download | gsxlib-7a46310b44d772a25ff775da4ea0b344ab7e1d0e.tar.gz gsxlib-7a46310b44d772a25ff775da4ea0b344ab7e1d0e.tar.bz2 gsxlib-7a46310b44d772a25ff775da4ea0b344ab7e1d0e.zip |
Modified readme
Diffstat (limited to 'gsxcl')
-rwxr-xr-x | gsxcl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |