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
""" | |
Convert .gitignore to .dockerignore: quick and dirty. | |
This is a quick and dirty script to convert this: | |
`__pycache__/` | |
Into this: | |
``` | |
__pycache__ | |
*/__pycache__ |
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 python2 | |
""" | |
Shamelessly stolen from [davynspencer](https://gist.github.com/devynspencer)'s | |
[gist](https://gist.github.com/devynspencer/2bcca0a7654168ef454f/) with minor | |
modifications for freeipa 4.4.0 | |
""" | |
import argparse | |
import json | |
from ipalib import api |