From d9f18625e9e048780b92b9ce51cf595dcb6482fb Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Thu, 10 May 2007 21:08:26 +0000 Subject: [PATCH] Verbose message whenever no vendor/model is found --- pam_usb/tools/pamusb-conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pam_usb/tools/pamusb-conf b/pam_usb/tools/pamusb-conf index 61149d7..f3499c4 100755 --- a/pam_usb/tools/pamusb-conf +++ b/pam_usb/tools/pamusb-conf @@ -181,10 +181,10 @@ def addDevice(options): shouldSave(options,[ ('Name', options['deviceName']), - ('Vendor', device.vendor), - ('Model', device.product), + ('Vendor', device.vendor or "Unknown"), + ('Model', device.product or "Unknown"), ('Serial', device.serialNumber), - ('UUID', volume['uuid'] or "") + ('UUID', volume['uuid'] or "Unknown") ]) try: