Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for normalize_ports (0.07 sec)

  1. bin/diff_yaml.py

                    print(ex)
    
            return res
        except KeyError as ke:
            if 'kind' in str(ke) or 'data' in str(ke):
                return res
    
            raise
    
    
    def normalize_ports(res):
        try:
            spec = res["spec"]
            if spec is None:
                return res
            ports = sorted(spec['ports'], key=lambda x: x["port"])
            spec['ports'] = ports
    
            return res
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Mar 03 16:14:57 UTC 2021
    - 4.5K bytes
    - Viewed (0)
Back to top