Skip to content

Commit c3c39af

Browse files
committed
adding deprecation warning for getting upgrade price id from package items
1 parent daa4ec6 commit c3c39af

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

SoftLayer/managers/vs.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import itertools
1010
import socket
1111
import time
12+
import warnings
1213

1314
from SoftLayer import exceptions
1415
from SoftLayer.managers import ordering
@@ -901,6 +902,8 @@ def _get_price_id_for_upgrade(self, package_items, option, value,
901902
:param int value: The value of the parameter to be upgraded
902903
:param bool public: CPU will be in Private/Public Node.
903904
"""
905+
warnings.warn("use _get_price_id_for_upgrade_option() instead",
906+
DeprecationWarning)
904907
option_category = {
905908
'memory': 'ram',
906909
'cpus': 'guest_core',

0 commit comments

Comments
 (0)