Remove 'update' field from skills data
Filter out update field from skills data when sending skills manifest
since backend will reject fields with unexpected data
@@ -431,8 +431,12 @@ class DeviceApi(Api):
LOG.warning('skills manifest lacks skills entry')
to_send['skills'] = []
- # Finalize skill_gid with uuid if needed
for s in to_send['skills']:
+ # Remove optional fields backend objects to
+ if 'update' in s:
+ s.pop('update')
+
+ # Finalize skill_gid with uuid if needed
s['skill_gid'] = s.get('skill_gid', '').replace(
'@|', '@{}|'.format(self.identity.uuid))
