public ReturnStatus Execute() { ReturnStatus status = new ReturnStatus(); ApplicationContainer container = new ApplicationContainer(WithAppUuid, WithContainerUuid, null, WithAppName, WithContainerName, WithNamespace, null, null, null, WithUid); try { string output = string.Empty; string[] keys = null; if (!string.IsNullOrEmpty(WithKeys)) { keys = WithKeys.Split(' '); } Dictionary<string, string> variables = container.UserVarList(keys); status.Output = string.Format("{0}CLIENT_RESULT: {1}{0}", Environment.NewLine, JsonConvert.SerializeObject(variables)); status.ExitCode = 0; } catch (Exception ex) { Logger.Error("Error running oo-user-var-list command: {0} - {1}", ex.Message, ex.StackTrace); status.Output = ex.ToString(); status.ExitCode = 1; } return status; }