From fae3f3ca8379e8f430936b72c1a0d737bb13e697 Mon Sep 17 00:00:00 2001 From: "C. R. Oldham" Date: Wed, 7 Oct 2015 21:01:09 -0600 Subject: [PATCH] Lint --- salt/proxy/rest_sample.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/salt/proxy/rest_sample.py b/salt/proxy/rest_sample.py index 49877f5efb..1feb9bc125 100644 --- a/salt/proxy/rest_sample.py +++ b/salt/proxy/rest_sample.py @@ -33,12 +33,14 @@ def __virtual__(): log.debug('rest_sample proxy __virtual__() called...') return True -# Every proxy module needs an 'init', though you can +# Every proxy module needs an 'init', though you can # just put a 'pass' here if it doesn't need to do anything. + + def init(opts): log.debug('rest_sample proxy init() called...') - # Save the REST URL + # Save the REST URL DETAILS['url'] = opts['proxy']['url'] # Make sure the REST URL ends with a '/' @@ -49,7 +51,7 @@ def init(opts): def id(opts): ''' Return a unique ID for this proxy minion. This ID MUST NOT CHANGE. - If it changes while the proxy is running the salt-master will get + If it changes while the proxy is running the salt-master will get really confused and may stop talking to this minion ''' r = salt.utils.http.query(opts['proxy']['url']+'id', decode_type='json', decode=True) @@ -168,4 +170,3 @@ def shutdown(opts): For this proxy shutdown is a no-op ''' log.debug('rest_sample proxy shutdown() called...') - pass