summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLiang Hou <houliang@intel.com>2007-08-06 07:47:11 +0000
committerLiang Hou <houliang@intel.com>2007-08-06 07:47:11 +0000
commit938c4bb798b18beeae59028334660f555045cdac (patch)
treeb179387ad8b4dad8afe1a13bc04277760bd01316 /src
parentb223f3749db21b49bdbcde045c40eb8e19d4ee8a (diff)
downloadwsmancli-938c4bb798b18beeae59028334660f555045cdac.tar.gz
wsmancli-938c4bb798b18beeae59028334660f555045cdac.tar.xz
wsmancli-938c4bb798b18beeae59028334660f555045cdac.zip
update renew command support
Diffstat (limited to 'src')
-rw-r--r--src/wsman.c7
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) {