We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa7bbf4 commit aa30380Copy full SHA for aa30380
hpccm/primitives/copy.py
@@ -111,12 +111,10 @@ def __init__(self, **kwargs):
111
self._post = kwargs.get('_post', '') # Singularity specific
112
self.__src = kwargs.get('src', '')
113
114
- ef = kwargs.get('_exclude_from', None)
115
- if ef is None:
116
- self.__exclude_from = []
117
- elif isinstance(ef, (list, tuple)):
+ ef = kwargs.get('_exclude_from', [])
+ if isinstance(ef, (list, tuple)):
118
self.__exclude_from = list(ef)
119
- else:
+ elif ef:
120
self.__exclude_from = [ef]
121
122
if self._mkdir and self._post:
0 commit comments