munkireport_parser.py
def storage_report(record, report):
    """Generate report for low storage situation"""
    threshold = 20000000000  # <= 20G local storage
    if record[FREESPACE] and int(record[FREESPACE]) <= threshold:
        value = float(record[FREESPACE]) / 1000000000.0
        add_problem(
            report,
            "Storage",
            {"Free space": "{0:.2g} GB".format(value)},
            determine_acknowledgement(record, report, "ack-storage"),
        )
Generate report for low storage situation
Generate report for low storage situation
Generate report for low storage situation
def storage_report(record, report):
    threshold = 20000000000  
    if record[FREESPACE] and int(record[FREESPACE]) <= threshold:
        value = float(record[FREESPACE]) / 1000000000.0
        add_problem(
            report,
            "Storage",
            {"Free space": "{0:.2g} GB".format(value)},
            determine_acknowledgement(record, report, "ack-storage"),
        )
def storage_report ( record , report ) : threshold = 20000000000 if record [ FREESPACE ] and int ( record [ FREESPACE ] ) <= threshold : value = float ( record [ FREESPACE ] ) / 1000000000.0 add_problem ( report , "Storage" , { "Free space" : "{0:.2g} GB" . format ( value ) } , determine_acknowledgement ( record , report , "ack-storage" ) , )
Generate report for low storage situation
Generate report for low storage situation
"""Generate report for low storage situation""" # <= 20G local storage
record
report