parameters: (self)
docstring: 更新服务器
docstring_summary: 更新服务器
docstring_tokens: 更新服务器
function: def _update_server(self):
          """
          更新服务器
          """
          self.asset.server.model = self.report_data.get('model')
          self.asset.server.os_type = self.report_data.get('os_type')
          self.asset.server.os_distribution = self.report_data.get('os_distribution')
          self.asset.server.os_release = self.report_data.get('os_release')
          self.asset.server.save()
function_tokens: def _update_server ( self ) : self . asset . server . model = self . report_data . get ( 'model' ) self . asset . server . os_type = self . report_data . get ( 'os_type' ) self . asset . server . os_distribution = self . report_data . get ( 'os_distribution' ) self . asset . server . os_release = self . report_data . get ( 'os_release' ) self . asset . server . save ( )