Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 732150 - app-admin/salt-3000.3: makeconf module fails if make.conf is a directory
Summary: app-admin/salt-3000.3: makeconf module fails if make.conf is a directory
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-11 00:29 UTC by Zac Medico
Modified: 2020-07-11 00:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zac Medico gentoo-dev 2020-07-11 00:29:06 UTC
> [DEBUG  ] Called modules.pkg.install: {'name': None, 'refresh': True, 'pkgs': [{'dev-db/memsql-server': '6.7.12'}, {'dev-db/memsql-toolbox': '1.0.6'}, {'dev-db/memsql_exporter': '1.1.1'}, {'app-upconf/memsql-conf': '0.0.2'}], 'sources': None, 'kwargs': {'version': None, 'skip_verify': False, 'reinstall': False, 'normalize': True, 'update_holds': False, 'ignore_epoch': False, 'saltenv': 'staging', 'allow_updates': False}, 'binhost': None}
> [DEBUG  ] An exception occurred in this state: expected str, bytes or os.PathLike object, not NoneType
> Traceback (most recent call last):
>  File "/usr/lib64/python3.6/site-packages/salt/state.py", line 1933, in call
>   **cdata['kwargs'])
>  File "/usr/lib64/python3.6/site-packages/salt/loader.py", line 1951, in wrapper
>   return f(*args, **kwargs)
>  File "/usr/lib64/python3.6/site-packages/salt/states/pkg.py", line 1705, in installed
>   **kwargs)
>  File "/usr/lib64/python3.6/site-packages/salt/modules/ebuildpkg.py", line 643, in install
>   refresh_db()
>  File "/usr/lib64/python3.6/site-packages/salt/modules/ebuildpkg.py", line 469, in refresh_db
>   has_webrsync = True if __salt__['makeconf.features_contains']('webrsync-gpg') else False
>  File "/usr/lib64/python3.6/site-packages/salt/modules/makeconf.py", line 809, in features_contains
>   return var_contains('FEATURES', value)
>  File "/usr/lib64/python3.6/site-packages/salt/modules/makeconf.py", line 214, in var_contains
>   setval = get_var(var)
>  File "/usr/lib64/python3.6/site-packages/salt/modules/makeconf.py", line 188, in get_var
>   with salt.utils.files.fopen(makeconf) as fn_:
>  File "/usr/lib64/python3.6/site-packages/salt/utils/files.py", line 399, in fopen
>   f_handle = open(*args, **kwargs) # pylint: disable=resource-leakage
> TypeError: expected str, bytes or os.PathLike object, not NoneType
> [ERROR  ] An exception occurred in this state: Traceback (most recent call last):
>  File "/usr/lib64/python3.6/site-packages/salt/state.py", line 1933, in call
>   **cdata['kwargs'])
>  File "/usr/lib64/python3.6/site-packages/salt/loader.py", line 1951, in wrapper
>   return f(*args, **kwargs)
>  File "/usr/lib64/python3.6/site-packages/salt/states/pkg.py", line 1705, in installed
>   **kwargs)
>  File "/usr/lib64/python3.6/site-packages/salt/modules/ebuildpkg.py", line 643, in install
>   refresh_db()
>  File "/usr/lib64/python3.6/site-packages/salt/modules/ebuildpkg.py", line 469, in refresh_db
>   has_webrsync = True if __salt__['makeconf.features_contains']('webrsync-gpg') else False
>  File "/usr/lib64/python3.6/site-packages/salt/modules/makeconf.py", line 809, in features_contains
>   return var_contains('FEATURES', value)
>  File "/usr/lib64/python3.6/site-packages/salt/modules/makeconf.py", line 214, in var_contains
>   setval = get_var(var)
>  File "/usr/lib64/python3.6/site-packages/salt/modules/makeconf.py", line 188, in get_var
>   with salt.utils.files.fopen(makeconf) as fn_:
>  File "/usr/lib64/python3.6/site-packages/salt/utils/files.py", line 399, in fopen
>   f_handle = open(*args, **kwargs) # pylint: disable=resource-leakage
> TypeError: expected str, bytes or os.PathLike object, not NoneType