Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/missing long #587

Open
wants to merge 2 commits into
base: puppet4
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions files/wlst/common.py.erb
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,6 @@ def get_attribute_value(mbean_attribute):
return
elif key_type == 'float':
print 'Getting float property ' + mbean_attribute
get(mbean_attribute)
print 'Getting boolean property ' + mbean_attribute
real_value = get(mbean_attribute)
if real_value is not None:
return str(float(real_value))
Expand All @@ -246,6 +244,17 @@ def get_attribute_value(mbean_attribute):
return ''
else:
return
elif key_type == 'long':
print 'Getting long property ' + mbean_attribute
real_value = get(mbean_attribute)
if real_value is not None:
return str(long(real_value))
elif default_value is not None:
return str(long(default_value))
elif null_value == 1:
return ''
else:
return
else:
print 'Getting generic property ' + mbean_attribute
real_value = get(mbean_attribute)
Expand Down