ajenti / ajenti

Undefined name detected PYL-E0602
Bug risk
Critical
6 months ago4 years old
Undefined variable 'EndpointError'
126                OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM, content)
127                OpenSSL.crypto.load_privatekey(OpenSSL.crypto.FILETYPE_PEM, content)
128        except Exception as e:
129            raise EndpointError(None, message=str(e))130
131        return True
Undefined variable 'ifconfig_down'
130        :type iface: string
131        """
132
133        ifconfig_down(iface)134
135    def get_hostname(self):
136        """
Undefined variable 'ifconfig_up'
120        :type iface: string
121        """
122
123        ifconfig_up(iface)124
125    def down(self, iface):
126        """
Undefined variable 'ifconfig_get_up'
109
110        return {
111            'address': ifconfig_get_ip(iface),
112            'up': ifconfig_get_up(iface),113        }
114
115    def up(self, iface):
Undefined variable 'ifconfig_get_ip'
108        """
109
110        return {
111            'address': ifconfig_get_ip(iface),112            'up': ifconfig_get_up(iface),
113        }
114