Thanks for getting back to me. I'm not very good with python and very new to salt but here's the debug output:
sudo salt-call -l debug netbox.get dcim devices id=100
[DEBUG ] TiamatPipPathFinder.find_spec: First time trying to load log4mongo
[DEBUG ] TiamatPipPathFinder.find_spec: First time trying to load raven
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Including configuration from '/etc/salt/minion.d/_schedule.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/_schedule.conf
[DEBUG ] Including configuration from '/etc/salt/minion.d/minion.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/minion.conf
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: MT-DOCKER
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[DEBUG ] TiamatPipPathFinder.find_spec: First time trying to load log4mongo
[DEBUG ] TiamatPipPathFinder.find_spec: First time trying to load raven
[DEBUG ] Configuration file path: /etc/salt/minion
[DEBUG ] Grains refresh requested. Refreshing grains.
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Including configuration from '/etc/salt/minion.d/_schedule.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/_schedule.conf
[DEBUG ] Including configuration from '/etc/salt/minion.d/minion.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/minion.conf
[DEBUG ] TiamatPipPathFinder.find_spec: First time trying to load pywintypes
[DEBUG ] TiamatPipPathFinder.find_spec: First time trying to load dns
[DEBUG ] TiamatPipPathFinder.find_spec: First time trying to load tldextract
[DEBUG ] TiamatPipPathFinder.find_spec: First time trying to load tldextract
[DEBUG ] The functions from module 'core' are being loaded by dir() on the loaded module
[DEBUG ] The functions from module 'disks' are being loaded by dir() on the loaded module
[DEBUG ] The functions from module 'extra' are being loaded by dir() on the loaded module
[DEBUG ] The functions from module 'lvm' are being loaded by dir() on the loaded module
[DEBUG ] The functions from module 'mdadm' are being loaded by dir() on the loaded module
[DEBUG ] The functions from module 'minion_process' are being loaded by dir() on the loaded module
[DEBUG ] TiamatPipPathFinder.find_spec: First time trying to load napalm
[DEBUG ] The functions from module 'opts' are being loaded by dir() on the loaded module
[DEBUG ] TiamatPipPathFinder.find_spec: First time trying to load pythoncom
[DEBUG ] TiamatPipPathFinder.find_spec: First time trying to load win32com
[DEBUG ] TiamatPipPathFinder.find_spec: First time trying to load win32api
[DEBUG ] Override __utils__: <module 'salt.loaded.int.grains.zfs' from '/opt/saltstack/salt/run/salt/grains/zfs.py'>
[DEBUG ] The functions from module 'zfs' are being loaded by dir() on the loaded module
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string [106/812]
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] Elapsed time getting FQDNs: 0.04716372489929199 seconds
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] TiamatPipPathFinder.find_spec: First time trying to load _bootlocale
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] TiamatPipPathFinder.find_spec: First time trying to load lsb_release
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] Loading static grains from /etc/salt/grains
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] The functions from module 'zfs' are being loaded by dir() on the loaded module
[DEBUG ] LazyLoaded zfs.is_supported
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] User provided environment variable 'LD_LIBRARY_PATH' with value '/opt/saltstack/salt/run' which is the value that PyInstaller set's. Removing it [53/812]
[DEBUG ] Setting environment variable 'LD_LIBRARY_PATH' to an empty string
[DEBUG ] Connecting to master. Attempt 1 of 1
[DEBUG ] Master URI: tcp://
10.1.10.56:4506[DEBUG ] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'MT-DOCKER', 'tcp://
10.1.10.56:4506')
[DEBUG ] Generated random reconnect delay between '1000ms' and '11000ms' (10203)
[DEBUG ] Setting zmq_reconnect_ivl to '10203ms'
[DEBUG ] Setting zmq_reconnect_ivl_max to '11000ms'
[DEBUG ] salt.crypt.get_rsa_key: Loading private key
[DEBUG ] salt.crypt._get_key_with_evict: Loading private key
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG ] SaltEvent PUB socket URI: /var/run/salt/minion/minion_event_a4ac9cc367_pub.ipc
[DEBUG ] SaltEvent PULL socket URI: /var/run/salt/minion/minion_event_a4ac9cc367_pull.ipc
[DEBUG ] salt.crypt.get_rsa_pub_key: Loading public key
[DEBUG ] Decrypting the current master AES key
[DEBUG ] salt.crypt.get_rsa_key: Loading private key
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG ] salt.crypt.get_rsa_pub_key: Loading public key
[DEBUG ] salt.crypt.verify_signature: Loading public key
[DEBUG ] salt.crypt.get_rsa_pub_key: Loading public key
[DEBUG ] salt.crypt.verify_signature: Verifying signature
[DEBUG ] <salt.crypt.AsyncAuth object at 0x7f755c3ab5e0> Got new master aes key.
[DEBUG ] Closing AsyncReqChannel instance
[DEBUG ] Connecting the Minion to the Master publish port, using the URI: tcp://
10.1.10.56:4505[DEBUG ] <salt.transport.zeromq.PublishClient object at 0x7f755c3ab8e0> connecting to tcp://
10.1.10.56:4505[DEBUG ] Sending event: tag = __master_connected; data = {'master': '10.1.10.56', '_stamp': '2022-11-21T21:08:46.606289'}
[DEBUG ] salt.crypt.get_rsa_key: Loading private key
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG ] Closing IPCMessageClient instance
[DEBUG ] Determining pillar cache
[DEBUG ] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'MT-DOCKER', 'tcp://
10.1.10.56:4506')
[DEBUG ] salt.crypt.get_rsa_key: Loading private key
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG ] salt.crypt.verify_signature: Loading public key
[DEBUG ] salt.crypt.get_rsa_pub_key: Loading public key
[DEBUG ] salt.crypt.verify_signature: Verifying signature
[DEBUG ] Closing AsyncReqChannel instance
[DEBUG ] The functions from module 'jinja' are being loaded by dir() on the loaded module
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] The functions from module 'yaml' are being loaded by dir() on the loaded module
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] TiamatPipPathFinder.find_spec: First time trying to load pynetbox
[DEBUG ] TiamatPipPathFinder.find_spec: /opt/saltstack/salt/pypath/lib/python3.9/site-packages/pynetbox is a directory
[DEBUG ] The functions from module 'netbox' are being loaded by dir() on the loaded module
[DEBUG ] LazyLoaded netbox.get
[DEBUG ] The functions from module 'direct_call' are being loaded by dir() on the loaded module
[DEBUG ] LazyLoaded direct_call.execute
[DEBUG ] TiamatPipPathFinder.find_spec: First time trying to load pywintypes
[DEBUG ] TiamatPipPathFinder.find_spec: First time trying to load smbprotocol
[DEBUG ] TiamatPipPathFinder.find_spec: First time trying to load pypsexec
[DEBUG ] TiamatPipPathFinder.find_spec: First time trying to load winrm
[DEBUG ] The functions from module 'config' are being loaded by dir() on the loaded module
[DEBUG ] LazyLoaded config.get
Passed invalid arguments: 'NoneType' object is not subscriptable.
Usage:
Get a single item from NetBox.
app
String of netbox app, e.g., ``dcim``, ``circuits``, ``ipam``
endpoint
String of app endpoint, e.g., ``sites``, ``regions``, ``devices``
Returns a single dictionary
To get an item based on ID.
.. code-block:: bash
salt myminion netbox.get dcim devices id=123
Or using named arguments that correspond with accepted filters on
the NetBox endpoint.
.. code-block:: bash
salt myminion netbox.get dcim devices name=my-router
Traceback (most recent call last):
File "salt/cli/caller.py", line 202, in call
ret["return"] = self.minion.executors[fname](
File "salt/loader/lazy.py", line 149, in __call__
return self.loader.run(run_func, *args, **kwargs)
File "salt/loader/lazy.py", line 1228, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "salt/loader/lazy.py", line 1243, in _run_as
return _func_or_method(*args, **kwargs)
File "/opt/saltstack/salt/run/salt/executors/direct_call.py", line 10, in execute
return func(*args, **kwargs)
File "salt/loader/lazy.py", line 149, in __call__
return self.loader.run(run_func, *args, **kwargs)
File "salt/loader/lazy.py", line 1228, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "salt/loader/lazy.py", line 1243, in _run_as
return _func_or_method(*args, **kwargs)
File "/opt/saltstack/salt/run/salt/modules/netbox.py", line 188, in get_
_get(
File "/opt/saltstack/salt/run/salt/modules/netbox.py", line 117, in _get
nb = _nb_obj(auth_required=auth_required)
File "/opt/saltstack/salt/run/salt/modules/netbox.py", line 72, in _nb_obj
return pynetbox.api(_config().get("url"), **pynb_kwargs)
File "/opt/saltstack/salt/pypath/lib/python3.9/site-packages/pynetbox/core/api.py", line 86, in __init__
base_url = "{}/api".format(url if url[-1] != "/" else url[:-1])
TypeError: 'NoneType' object is not subscriptable
[DEBUG ] Restoring sys.argv to: ['/opt/saltstack/salt/run/run', '-l', 'debug', 'netbox.get', 'dcim', 'devices', 'id=100']