Skip to content

Commit

Permalink
ifup,reload,status: report setup-in-progress code
Browse files Browse the repository at this point in the history
  • Loading branch information
mtomaschewski committed Sep 15, 2014
1 parent 651871a commit dfd8d75
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/ifstatus.c
Expand Up @@ -528,6 +528,9 @@ ni_ifstatus_to_retcode(int status, ni_bool_t mandatory)
case NI_WICKED_ST_UNCONFIGURED:
return mandatory ? NI_WICKED_ST_UNUSED : NI_WICKED_ST_OK;

case NI_WICKED_ST_IN_PROGRESS:
return mandatory ? NI_WICKED_ST_IN_PROGRESS : NI_WICKED_ST_OK;

default:
return NI_WICKED_ST_OK;
}
Expand Down Expand Up @@ -727,6 +730,8 @@ ni_do_ifstatus(int argc, char **argv)
case NI_WICKED_ST_NO_DEVICE:
case NI_WICKED_ST_UNCONFIGURED:
case NI_WICKED_ST_NOT_RUNNING:
case NI_WICKED_ST_IN_PROGRESS:
break;
default:
status = NI_WICKED_ST_OK;
break;
Expand Down Expand Up @@ -841,6 +846,8 @@ ni_ifstatus_display_result(ni_fsm_t *fsm, ni_string_array_t *names, ni_ifworker_
case NI_WICKED_ST_NO_DEVICE:
case NI_WICKED_ST_UNCONFIGURED:
case NI_WICKED_ST_NOT_RUNNING:
case NI_WICKED_ST_IN_PROGRESS:
break;
default:
status = NI_WICKED_ST_OK;
break;
Expand Down

0 comments on commit dfd8d75

Please sign in to comment.