From f0269e9e62278dd0f13dad5954244e66a7d231d4 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 13 May 2014 22:08:49 +0300 Subject: Product diags SN attribute fix --- gsxws/products.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gsxws') 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): -- cgit v1.2.3