some formatting
Dieser Commit ist enthalten in:
Ursprung
c80722c46f
Commit
3e3ccc8458
|
@ -37,9 +37,7 @@ class _Type(type):
|
||||||
else:
|
else:
|
||||||
individual[key] = value
|
individual[key] = value
|
||||||
if len(virtual) != 0 and virtfunc is None: # pragma: nocover
|
if len(virtual) != 0 and virtfunc is None: # pragma: nocover
|
||||||
raise TypeError(
|
raise TypeError("Virtual funcs defined, but no func to generate them defined")
|
||||||
"Virtual funcs defined, but no func to generate them defined"
|
|
||||||
)
|
|
||||||
special["_attr"] = tuple(virtual + tuple(individual.keys()))
|
special["_attr"] = tuple(virtual + tuple(individual.keys()))
|
||||||
special["_vfunc"] = virtfunc
|
special["_vfunc"] = virtfunc
|
||||||
special["_virtual"] = virtual
|
special["_virtual"] = virtual
|
||||||
|
|
|
@ -2,8 +2,7 @@ import os
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
try: # pragma: nocover
|
try: # pragma: nocover
|
||||||
from ansible_collections.sebastian.systemd.plugins.module_utils.generic import \
|
from ansible_collections.sebastian.systemd.plugins.module_utils.generic import Types
|
||||||
Types
|
|
||||||
except ImportError: # pragma: nocover
|
except ImportError: # pragma: nocover
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
Laden…
In neuem Issue referenzieren