Skip to content

Commit

Permalink
v2.6.0: support -L <locale> to specify request locale
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaempf committed Jun 11, 2015
1 parent 8be4e22 commit 478d200
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Version 2.5
Version 2.6.0
- add '-L <locale>' flag to specify request-locale

Version 2.5.0
- 'wsman -h' exits with zero
- properties and selectors are kept sorted
(requires Openwsman 2.5 now)
Expand Down
4 changes: 2 additions & 2 deletions configure.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dnl Process this file with autoconf to produce a configure script.

AC_INIT(wsmancli, 2.5.0)
AC_INIT(wsmancli, 2.6.0)
AC_CONFIG_SRCDIR(wsmancli.spec.in)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_CONFIG_HEADER(config.h)
Expand All @@ -18,7 +18,7 @@ AC_SUBST(WSMAN_PKG)
PACKAGE_BUILDTS=`date +%Y%m%d%H%M`
AC_SUBST(PACKAGE_BUILDTS)

PKG_CHECK_MODULES(OPENWSMAN, [openwsman >= 2.5])
PKG_CHECK_MODULES(OPENWSMAN, [openwsman >= 2.6.0])
have_cunit=no
AC_CHECK_HEADERS([CUnit/Basic.h], have_cunit="yes" )
AM_CONDITIONAL(BUILD_CUNIT_TESTS, test "$have_cunit" == "yes")
Expand Down
6 changes: 6 additions & 0 deletions src/wsman.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ static char *event_thumbprint = NULL;

static char *cim_namespace = NULL;
static char *fragment = NULL;
static char *locale = NULL;
static char *wsm_filter = NULL;
static char *wsm_dialect = NULL;
static char *input = NULL;
Expand Down Expand Up @@ -249,6 +250,8 @@ static char wsman_parse_options(int argc, char **argv)
"maximal envelope size", "<size>"},
{"fragment", 'F', U_OPTION_ARG_STRING, &fragment,
"Fragment (Supported Dialects: XPATH)", "<fragment>"},
{"locale", 'L', U_OPTION_ARG_STRING, &locale,
"Locale for this request", "<RFC 5646 language code>"},
{NULL}
};

Expand Down Expand Up @@ -740,6 +743,9 @@ int main(int argc, char **argv)
if (fragment) {
options->fragment = fragment;
}
if (locale) {
options->locale = locale;
}

wsman_options_set_properties(options);
options->cim_ns = cim_namespace;
Expand Down

0 comments on commit 478d200

Please sign in to comment.