pbs_snapshot errors out if there are custom resources

Description

pbs_snapshot errors out if run on a system with custom resources:

Traceback (most recent call last):
File "/bin/pbs_snapshot", line 195, in <module>
outtar = snap_utils.capture_all()
File "/usr/lib/python2.7/site-packages/ptl/utils/pbs_snaputils.py", line 1605, in capture_all
self.capture_server(with_svr_logs=True, with_acct_logs=True)
File "/usr/lib/python2.7/site-packages/ptl/utils/pbs_snaputils.py", line 1262, in capture_server
self.__capture_rscs_all()
File "/usr/lib/python2.7/site-packages/ptl/utils/pbs_snaputils.py", line 1212, in __capture_rscs_all
rsc_str += "\n type = " + rsc_obj.attributes['type']
TypeError: cannot concatenate 'str' and 'int' objects

Acceptance Criteria

None

Assignee

Ravi Agrawal

Reporter

Ravi Agrawal

Severity

2-Medium

OS

None

Start Date

None

Pull Request URL

None

Story Points

1

Components

Fix versions

Priority

Critical
Configure