diff options
author | Filipp Lepalaan <filipp@mac.com> | 2014-05-13 22:02:05 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2014-05-13 22:02:05 +0300 |
commit | 269216c477a8506c529fa83665ec3405fcbaeda7 (patch) | |
tree | a7a6fd8da7be982fd1aa20d87d6c21c21e1d1a3b /gsxws/products.py | |
parent | 2e8cef4bddba9213495fa8f9fcd4938311ac606f (diff) | |
download | py-gsxws-269216c477a8506c529fa83665ec3405fcbaeda7.tar.gz py-gsxws-269216c477a8506c529fa83665ec3405fcbaeda7.tar.bz2 py-gsxws-269216c477a8506c529fa83665ec3405fcbaeda7.zip |
Fix iOS diagnostics through Product.diagnostics()
Diffstat (limited to 'gsxws/products.py')
-rw-r--r-- | gsxws/products.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gsxws/products.py b/gsxws/products.py index 5b58a23..6be6ace 100644 --- a/gsxws/products.py +++ b/gsxws/products.py @@ -113,7 +113,11 @@ class Product(object): """ >>> Product('DGKFL06JDHJP').diagnostics() """ - diags = Diagnostics(serialNumber=self.serialNumber) + diags = Diagnostics(serialNumber=self.sn) + + if hasattr(self, "alternateDeviceId"): + diags = Diagnostics(alternateDeviceId=self.alternateDeviceId) + return diags.fetch() def fetch_image(self, url=None): |