diff options
author | Liang Hou <houliang@intel.com> | 2007-08-06 07:47:11 +0000 |
---|---|---|
committer | Liang Hou <houliang@intel.com> | 2007-08-06 07:47:11 +0000 |
commit | 938c4bb798b18beeae59028334660f555045cdac (patch) | |
tree | b179387ad8b4dad8afe1a13bc04277760bd01316 /src/wsman.c | |
parent | b223f3749db21b49bdbcde045c40eb8e19d4ee8a (diff) | |
download | wsmancli-938c4bb798b18beeae59028334660f555045cdac.tar.gz wsmancli-938c4bb798b18beeae59028334660f555045cdac.tar.xz wsmancli-938c4bb798b18beeae59028334660f555045cdac.zip |
update renew command support
Diffstat (limited to 'src/wsman.c')
-rw-r--r-- | src/wsman.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/wsman.c b/src/wsman.c index bd366a3..36321cf 100644 --- a/src/wsman.c +++ b/src/wsman.c @@ -328,7 +328,9 @@ static char wsman_parse_options(int argc, char **argv) resource_uri_opt = argv[2]; } else { if (argv[1] && (strcmp(argv[1], "identify") == 0 || - strcmp(argv[1], "test") == 0)) { + strcmp(argv[1], "test") == 0 || + strcmp(argv[1], "unsubscribe") == 0 || + strcmp(argv[1], "renew") == 0)) { _action = argv[1]; } else { fprintf(stderr, @@ -510,7 +512,6 @@ int main(int argc, char **argv) if (!wsman_parse_options(argc, argv)) { exit(EXIT_FAILURE); } - initialize_logging(); // wsmc_transport_init(NULL); options = wsmc_options_init(); @@ -807,6 +808,8 @@ int main(int argc, char **argv) } break; case WSMAN_ACTION_RENEW: + if(event_subscription_expire) + options->expires = event_subscription_expire; rqstDoc = wsmc_action_renew(cl, resource_uri, options, event_subscription_id); wsman_output(cl, rqstDoc); if (rqstDoc) { |