hobo: add support for --ignore-timestamp (#7186)
This commit is contained in:
parent
39b4196b4c
commit
184ba2f463
|
@ -22,7 +22,7 @@ import sys
|
|||
import tempfile
|
||||
import urllib2
|
||||
|
||||
from qommon.ctl import Command
|
||||
from qommon.ctl import Command, make_option
|
||||
from qommon.storage import atomic_write
|
||||
|
||||
|
||||
|
@ -33,6 +33,12 @@ class NoChange(Exception):
|
|||
class CmdCheckHobos(Command):
|
||||
name = 'hobo_deploy'
|
||||
|
||||
def __init__(self):
|
||||
Command.__init__(self, [
|
||||
make_option('--ignore-timestamp', action='store_true',
|
||||
dest='ignore_timestamp', default=False),
|
||||
])
|
||||
|
||||
def execute(self, base_options, sub_options, args):
|
||||
import publisher
|
||||
|
||||
|
@ -76,8 +82,9 @@ class CmdCheckHobos(Command):
|
|||
try:
|
||||
self.configure_site_options(service, pub)
|
||||
except NoChange:
|
||||
print ' skipping'
|
||||
return
|
||||
if not sub_options.ignore_timestamp:
|
||||
print ' skipping'
|
||||
return
|
||||
|
||||
pub.set_config()
|
||||
self.update_configuration(service, pub)
|
||||
|
|
Loading…
Reference in New Issue