Skip to content

Instantly share code, notes, and snippets.

View ralphbean's full-sized avatar

Ralph Bean ralphbean

  • Red Hat, Inc
  • Rochester, NY
View GitHub Profile
@yashvardhannanavati
yashvardhannanavati / pkgdb-monitoring-status-YAML.py
Last active August 30, 2017 16:11
Script to migrate the package monitoring status from PkgDB to a YAML format
import argparse
import requests
import yaml
import os
def write_yaml_default_assignees(destination_dir, namespace, name, value):
yaml_namespace_dir = os.path.join(destination_dir, namespace)
yaml_file_path = os.path.join(yaml_namespace_dir, name)
print('Writing {0}'.format(yaml_file_path))
if not os.path.isdir(yaml_namespace_dir):