Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • N noc
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 453
    • Issues 453
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 25
    • Merge requests 25
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • noc
  • noc
  • Merge requests
  • !2987

py3: Fix pickle field.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Andrey Vertiprahov requested to merge noc-py3-pickle-fields into master Jan 05, 2020
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 1

Fix pickle field:

In [3]: from noc.sa.models.managedobjectprofile import ManagedObjectProfile
In [5]: mop = ManagedObjectProfile.get_by_id(84)
In [6]: list(mop.metrics)
Out[6]:
[b'\x80',
 b'\x02',
 b']',
 b'q',
 b'\x01',
 b'(',
 b'}',
 b'q',
 b'\x02',
 b'(',
 b'X',
 b'\x0b',
 b'\x00',
 b'\x00',
 b'\x00',
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: noc-py3-pickle-fields