#1777 Fixing smolt submits
Closed: Fixed None Opened 14 years ago by mmcgrath.

= Change Requested =

This is fixed upstream, now also on the value servers.

= Reasoning =
{{{
diff --git a/smoon/hardware/controllers/client.py b/smoon/hardware/controllers/client.py
index 007a03a..ee26ce7 100644
--- a/smoon/hardware/controllers/client.py
+++ b/smoon/hardware/controllers/client.py
@@ -23,6 +23,13 @@ def request_format():
format = cherrypy.request.headers.get('Accept', 'default').lower()
return format

+def _fix_vendor(vendor):
+ rc = vendor
+ if vendor.startswith('Dell'):
+ rc = 'Dell, Inc.'
+ return rc
+
+
class Client(object):
error = Error()
def init(self, smolt_protocol, token):
@@ -179,11 +186,6 @@ class Client(object):
session.flush()
return dict(pub_uuid=pub_uuid)

  • def _fix_vendor(vendor):
  • rc = vendor
  • if vendor.startswith('Dell'):
  • rc = 'Dell, Inc.'
  • return rc
    }}}

Fixed and in the version we are running. No need for hotfix anymore.

Login to comment on this ticket.

Metadata