/[marcuscom]/meraki/meraki_api/__init__.py
ViewVC logotype

Diff of /meraki/meraki_api/__init__.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 20557 by jclarke, Thu May 17 16:54:08 2018 UTC revision 20558 by jclarke, Sat May 19 09:03:06 2018 UTC
# Line 528  class Device(Meraki): Line 528  class Device(Meraki):
528              return False              return False
529    
530          payload = {}          payload = {}
531          for k, v in kwargs.items():          for key in ['name', 'tags', 'lat', 'lng', 'address', 'move_map_marker']:
532              if k in ['name', 'tags', 'lat', 'lng', 'address', 'move_map_marker']:              if key in kwargs:
533                  if k == 'move_map_marker':                  if key == 'move_map_marker':
534                      payload['moveMapMarker'] = v                      payload['moveMapMarker'] = kwargs[key]
                 else:  
                     payload[k] = v  
             else:  
                 msg = 'Property {} is not valid for a device'.format(k)  
                 if self._logit:  
                     logging.warning(msg)  
535                  else:                  else:
536                      print(msg)                      payload[key] = kwargs[key]
537    
538          if len(payload) == 0:          if len(payload) == 0:
539              return False              return False

Legend:
Removed from v.20557  
changed lines
  Added in v.20558

  ViewVC Help
Powered by ViewVC 1.1.27