Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Environment.admin_net2 was returned for compatibility
Browse files Browse the repository at this point in the history
Environment.admin_net2 was returned for compatibility
with old tests

Change-Id: I2c155c63951bd266d3ea33020eaf49f2018ea550
  • Loading branch information
penguinolog committed Sep 29, 2016
1 parent 92f2187 commit 5ce7b5a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions devops/models/environment.py
Expand Up @@ -52,6 +52,16 @@ def admin_net(self):
warnings.warn(msg, DeprecationWarning)
return 'admin'

@property
def admin_net2(self):
msg = (
'Environment.admin_net2 is deprecated. '
'Replace by string "admin2".'
)
logger.warning(msg)
warnings.warn(msg, DeprecationWarning)
return 'admin2'

@property
def nat_interface(self):
msg = (
Expand Down

0 comments on commit 5ce7b5a

Please sign in to comment.