aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/products.py
diff options
context:
space:
mode:
Diffstat (limited to 'gsxws/products.py')
-rw-r--r--gsxws/products.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gsxws/products.py b/gsxws/products.py
index a66e251..b1bd5a7 100644
--- a/gsxws/products.py
+++ b/gsxws/products.py
@@ -113,11 +113,11 @@ class Product(object):
"""
>>> Product('DGKFL06JDHJP').diagnostics()
"""
- diags = Diagnostics(serialNumber=self.serialNumber)
-
if hasattr(self, "alternateDeviceId"):
diags = Diagnostics(alternateDeviceId=self.alternateDeviceId)
-
+ else:
+ diags = Diagnostics(serialNumber=self.serialNumber)
+
return diags.fetch()
def fetch_image(self, url=None):