Skip to content

Commit

Permalink
nanny: migrate policy config to new ethtool schema
Browse files Browse the repository at this point in the history
  • Loading branch information
mtomaschewski committed May 31, 2018
1 parent a922b76 commit 1f78f14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nanny/nanny.c
Expand Up @@ -345,7 +345,9 @@ ni_nanny_create_policy(ni_dbus_object_t **policy_object, ni_nanny_t *mgr, xml_do
rv = 0;
goto error;
}
else if ((policy = ni_fsm_policy_new(fsm, pname, pnode))) {
if (ni_ifconfig_migrate(pnode))
ni_debug_nanny("Migrated policy \"%s\" to current schema", pname);
if ((policy = ni_fsm_policy_new(fsm, pname, pnode))) {
ni_managed_policy_t *mpolicy;
ni_dbus_object_t *po_tmp = NULL;

Expand Down

0 comments on commit 1f78f14

Please sign in to comment.