~shakhat/os-faults/master

« back to all changes in this revision

Viewing changes to os_faults/api/node_collection.py

  • Committer: Ilya Shakhat
  • Date: 2018-12-17 16:54:46 UTC
  • Revision ID: git-v1:8f7e490c758e75acd1539908105e77a6dce88af3
Remove deprecated methods

Change-Id: Ie0361a0607d0467bc61eef4b5212c562883db43e

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
import logging
15
15
import random
16
 
import warnings
17
16
 
18
17
from os_faults.api import error
19
18
from os_faults.api.utils import public
99
98
    def get_fqdns(self):
100
99
        return [host.fqdn for host in self.hosts]
101
100
 
102
 
    def iterate_hosts(self):
103
 
        warnings.warn('iterate_hosts is deprecated, use __iter__ instead',
104
 
                      DeprecationWarning, stacklevel=2)
105
 
        return self.__iter__()
106
 
 
107
101
    def pick(self, count=1):
108
102
        """Pick one Node out of collection
109
103