WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit ceea9cd

Browse files
committed
Remove unused cleanup functions from networkd module, indicating future deprovisioning will not require them.
1 parent 3c68fe7 commit ceea9cd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cmds/modules/networkd/main.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,12 @@ func action(cli *cli.Context) error {
6868
return errors.Wrap(err, "failed to migrate older dhcp service")
6969
}
7070

71-
if err := network.CleanupUnusedLinks(); err != nil {
72-
return errors.Wrap(err, "failed to cleanupUnusedLinks")
73-
}
71+
// NOTE: all cleanup are done, future deprovisioning will not need to do this
72+
// if err := network.CleanupUnusedLinks(); err != nil {
73+
// return errors.Wrap(err, "failed to cleanupUnusedLinks")
74+
// }
7475

75-
network.CleanupOrphanedNamespaces()
76+
// network.CleanupOrphanedNamespaces()
7677

7778
if err := bootstrap.DefaultBridgeValid(); err != nil {
7879
return errors.Wrap(err, "invalid setup")

0 commit comments

Comments
 (0)