[jboss-jira] [JBoss JIRA] (AS7-2142) CLI: missing :remove-attribute command
Rostislav Svoboda (Commented) (JIRA)
jira-events at lists.jboss.org
Wed Oct 19 02:58:45 EDT 2011
[ https://issues.jboss.org/browse/AS7-2142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635646#comment-12635646 ]
Rostislav Svoboda commented on AS7-2142:
----------------------------------------
> The write-attribute operation with an undefined value param is the way to do this.
Well this will wok for STRING, but in case of INT I need to specify 0. With this I can't go back to initial state when socket-binding-port-offset wasn't defined and default was used. Now the best I can have is "socket-binding-port-offset" => 0. _reset-attribute_ would be beneficial.
{code}
[domain at 10.34.3.154:9999 /] /server-group=main-server-group:write-attribute(name="socket-binding-port-offset")
{
"outcome" => "failed",
"failure-description" => {"domain-failure-description" => "socket-binding-port-offset may not be null."},
"rolled-back" => true
}
{code}
> CLI: missing :remove-attribute command
> --------------------------------------
>
> Key: AS7-2142
> URL: https://issues.jboss.org/browse/AS7-2142
> Project: Application Server 7
> Issue Type: Bug
> Components: Domain Management
> Affects Versions: 7.1.0.Alpha1
> Reporter: Rostislav Svoboda
> Assignee: Brian Stansberry
> Fix For: 7.1.0.CR1
>
>
> We have _:read-attribute_ and _:write-attribute_ commands but we do not have *:remove-attribute* command. It would be invoked on attributes which have flag required set to false.
> For example when I define socket-binding-port-offset for server-group I can't remove it and I can't set it to 0 using CLI.
> {code}
> /server-group=main-server-group:read-resource-description()
> "socket-binding-port-offset" => {
> "description" => "The default offset to be added to the port values given by the socket binding group.",
> "type" => INT,
> "required" => false,
> "access-type" => "read-write",
> "storage" => "configuration",
> "restart-required" => "no-services"
> },
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list