ifstate identify failes when there are no links #141

Closed
opened 2025-11-29 00:04:58 +01:00 by m4rc3l · 0 comments
Contributor
ifstatecli[84]: IfState 2.2.1
ifstate-identif[84]: ifstate-identify[84] IfState 2.2.1
ifstate-identif[84]: ifstate-identify[84]  features                            brport devicetree ethtool link sysctl tc wireguard
ifstatecli[84]:  features                            brport devicetree ethtool link sysctl tc wireguard
ifstatecli[84]: Traceback (most recent call last):
ifstatecli[84]:   File "/nix/store/1kfsdm5dbsgw9j01vp87mx8bx46b7yhh-ifstate-2.2.1/bin/.ifstatecli-wrapped", line 9, in <module>
ifstatecli[84]:     sys.exit(main())
ifstatecli[84]:              ~~~~^^
ifstatecli[84]:   File "/nix/store/1kfsdm5dbsgw9j01vp87mx8bx46b7yhh-ifstate-2.2.1/lib/python3.13/site-packages/ifstate/ifstate.py", line 194, in main
ifstatecli[84]:     print(yaml.dump(ifs.identify()))
ifstatecli[84]:                     ~~~~~~~~~~~~^^
ifstatecli[84]:   File "/nix/store/1kfsdm5dbsgw9j01vp87mx8bx46b7yhh-ifstate-2.2.1/lib/python3.13/site-packages/libifstate/__init__.py", line 659, in identify
ifstatecli[84]:     return {**root_config}
ifstatecli[84]:            ^^^^^^^^^^^^^^^
ifstatecli[84]: TypeError: 'NoneType' object is not a mapping
systemd[1]: ifstate-initrd.service: Control process exited, code=exited, status=1/FAILURE
systemd[1]: ifstate-initrd.service: Failed with result 'exit-code'.
systemd[1]: Failed to start IfState initrd.
``` ifstatecli[84]: IfState 2.2.1 ifstate-identif[84]: ifstate-identify[84] IfState 2.2.1 ifstate-identif[84]: ifstate-identify[84] features brport devicetree ethtool link sysctl tc wireguard ifstatecli[84]: features brport devicetree ethtool link sysctl tc wireguard ifstatecli[84]: Traceback (most recent call last): ifstatecli[84]: File "/nix/store/1kfsdm5dbsgw9j01vp87mx8bx46b7yhh-ifstate-2.2.1/bin/.ifstatecli-wrapped", line 9, in <module> ifstatecli[84]: sys.exit(main()) ifstatecli[84]: ~~~~^^ ifstatecli[84]: File "/nix/store/1kfsdm5dbsgw9j01vp87mx8bx46b7yhh-ifstate-2.2.1/lib/python3.13/site-packages/ifstate/ifstate.py", line 194, in main ifstatecli[84]: print(yaml.dump(ifs.identify())) ifstatecli[84]: ~~~~~~~~~~~~^^ ifstatecli[84]: File "/nix/store/1kfsdm5dbsgw9j01vp87mx8bx46b7yhh-ifstate-2.2.1/lib/python3.13/site-packages/libifstate/__init__.py", line 659, in identify ifstatecli[84]: return {**root_config} ifstatecli[84]: ^^^^^^^^^^^^^^^ ifstatecli[84]: TypeError: 'NoneType' object is not a mapping systemd[1]: ifstate-initrd.service: Control process exited, code=exited, status=1/FAILURE systemd[1]: ifstate-initrd.service: Failed with result 'exit-code'. systemd[1]: Failed to start IfState initrd. ```
liske added this to the 2.2.2 milestone 2025-11-29 01:14:15 +01:00
liske self-assigned this 2025-11-29 01:14:25 +01:00
liske closed this issue 2025-12-02 20:08:05 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
liske/ifstate#141
No description provided.