Skip to content

Commit 33af4ff

Browse files
author
Khuong-Nguyen
committed
Added filter for accountRestrictedActivePresets
1 parent a845e44 commit 33af4ff

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

SoftLayer/managers/ordering.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,18 @@ def list_presets(self, package_keyname, **kwargs):
299299
def get_preset_by_key(self, package_keyname, preset_keyname, mask=None):
300300
"""Gets a single preset with the given key."""
301301
preset_operation = '_= %s' % preset_keyname
302-
_filter = {'activePresets': {'keyName': {'operation': preset_operation}}}
302+
_filter = {
303+
'activePresets': {
304+
'keyName': {
305+
'operation': preset_operation
306+
}
307+
},
308+
'accountRestrictedActivePresets': {
309+
'keyName': {
310+
'operation': preset_operation
311+
}
312+
}
313+
}
303314

304315
presets = self.list_presets(package_keyname, mask=mask, filter=_filter)
305316

0 commit comments

Comments
 (0)