Bug 696681
Summary: | Problem when using special characters in server name field | ||
---|---|---|---|
Product: | [Fedora] Fedora EPEL | Reporter: | William Lovins <wlovins> |
Component: | spacecmd | Assignee: | Aron Parsons <aparsons> |
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | el5 | CC: | msuchy, nobody |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | spacecmd-1.5.1-1 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-04-18 18:59:46 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 695242 |
Description
William Lovins
2011-04-14 15:46:32 UTC
Spaces and special characters are now handled properly within spacecmd. This required an argument order change for system_addcustomvalue and system_updatecustomvalue due to a crappy way of handling arguments on my part before. spacecmd {SSM:0}> system_updatecustomvalue is_web yes 'web-app-01 \(cu1prod2app1\)' spacecmd {SSM:0}> system_listcustomvalues 'web-app-01 \(cu1prod2app1\)' is_web = yes spacecmd {SSM:0}> spacecmd {SSM:0}> group_listsystems 'space test' web-app-01 (cu1prod2app1) spacecmd {SSM:0}> system_listcustomvalues 'group:space test' is_web = yes spacecmd {SSM:0}> You have to escape any special characters in the hostnames. This is because regular expressions are valid arguments as system names and the parentheses would be interpreted as part of the regex. This is not a problem when doing 'group:' or 'channel:' arguments, that is handled correctly internally. These changes are in spacecmd-1.5.1-1. Not current release, but future release. We have to build it and I'm going to do it when Spacewalk 1.5 will be released. Which is aprox 2-3 month ahead. |