This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
from ansible.parsing.vault import PromptVaultSecret, VaultLib | |
from ruamel.yaml import YAML | |
old_secret = PromptVaultSecret(prompt_formats=["Old password: "]) | |
old_secret.load() | |
new_secret = PromptVaultSecret(prompt_formats=["New password: "]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
from django.utils.translation import gettext_lazy as _ | |
from circuits.models import CircuitTermination | |
from dcim.models import Cable, FrontPort, Interface, RearPort | |
class TraceElementQuerySet(models.QuerySet): | |
def _filter_or_exclude(self, negate, *args, **kwargs): | |
# Handle filtering on element |