From 269216c477a8506c529fa83665ec3405fcbaeda7 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 13 May 2014 22:02:05 +0300 Subject: Fix iOS diagnostics through Product.diagnostics() --- gsxws/products.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gsxws/products.py') 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): -- cgit v1.2.3