aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Jaggars <jjaggars@redhat.com>2012-02-21 12:25:13 -0600
committerJesse Jaggars <jjaggars@redhat.com>2012-02-21 12:25:13 -0600
commit0af3e1a36112c0072f6633d14773e290f9ae101e (patch)
tree4c07791c46281ae5f8becd131d661e6c802ea01d
parent269547b4a9ecf6aa507b5ad1dd1e1c68529a1243 (diff)
downloadsos-0af3e1a36112c0072f6633d14773e290f9ae101e.tar.gz
fixing as7 plugin to prevent duplication
-rw-r--r--sos/plugins/as7.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/sos/plugins/as7.py b/sos/plugins/as7.py
index 9c052dd5..e56d91dd 100644
--- a/sos/plugins/as7.py
+++ b/sos/plugins/as7.py
@@ -141,15 +141,16 @@ class AS7(Plugin, IndependentPlugin, AS7Mixin):
self.addForbiddenPath(os.path.join(confDir, 'mgmt-users.properties'))
self.addForbiddenPath(os.path.join(confDir, 'application-users.properties'))
- self.doCopyFileOrDir(confDir, sub=(self.__jbossHome, 'JBOSSHOME'))
-
for logFile in find("*.log", path):
self.addCopySpecLimit(logFile,
self.getOption("logsize"),
sub=(self.__jbossHome, 'JBOSSHOME'))
for xml in find("*.xml", path):
- self.addCopySpec(xml)
+ self.addCopySpec(xml, sub=(self.__jbossHome, 'JBOSSHOME'))
+
+ for prop in find("*.properties", path):
+ self.addCopySpec(prop, sub=(self.__jbossHome, 'JBOSSHOME'))
deployment_info = self.__get_deployment_info(confDir)
deployments = self.__get_deployments(path)