Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example Jobs are not updated for Nautobot #186

Closed
jathanism opened this issue Mar 23, 2021 · 0 comments · Fixed by #187
Closed

Example Jobs are not updated for Nautobot #186

jathanism opened this issue Mar 23, 2021 · 0 comments · Fixed by #187
Assignees
Labels
type: bug Something isn't working as expected type: documentation Improvements or additions to documentation
Milestone

Comments

@jathanism
Copy link
Contributor

Environment

  • Python version: 3.8
  • Nautobot version: 1.0.0b2

Steps to Reproduce

  1. Navigate to https://nautobot.readthedocs.io/en/latest/additional-features/jobs/#creating-objects-for-a-planned-site
  2. Copy/paste the NewBranch job into a new Job
  3. Run it.

Expected Behavior

Expect it to succeed.

Observed Behavior

Traceback (most recent call last):
  File "/Users/jathan/Library/Caches/pypoetry/virtualenvs/nautobot-b2ttWva6-py3.8/lib/python3.8/site-packages/nautobot/extras/jobs.py", line 826, in _run_job
    output = job.run(data=data, commit=commit)
  File "/Users/jathan/.nautobot/git/nautobot-git-example/jobs/new_branch.py", line 37, in run
    site = Site(
  File "/Users/jathan/Library/Caches/pypoetry/virtualenvs/nautobot-b2ttWva6-py3.8/lib/python3.8/site-packages/django/db/models/base.py", line 483, in __init__
    _setattr(self, field.name, rel_obj)
  File "/Users/jathan/Library/Caches/pypoetry/virtualenvs/nautobot-b2ttWva6-py3.8/lib/python3.8/site-packages/django/db/models/fields/related_descriptors.py", line 215, in __set__
    raise ValueError(
ValueError: Cannot assign "'planned'": "Site.status" must be a "Status" instance.
@jathanism jathanism added the type: bug Something isn't working as expected label Mar 23, 2021
@jathanism jathanism added this to the v1.0.0 milestone Mar 23, 2021
@jathanism jathanism added the type: documentation Improvements or additions to documentation label Mar 23, 2021
jathanism added a commit to jathanism/nautobot that referenced this issue Mar 23, 2021
jathanism added a commit to jathanism/nautobot that referenced this issue Mar 23, 2021
jathanism added a commit to jathanism/nautobot that referenced this issue Mar 23, 2021
jathanism added a commit to jathanism/nautobot that referenced this issue Mar 23, 2021
@jathanism jathanism self-assigned this Mar 24, 2021
@jathanism jathanism added this to In progress in Release v1.0.0 Mar 24, 2021
Release v1.0.0 automation moved this from In progress to Done Mar 26, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working as expected type: documentation Improvements or additions to documentation
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant