Exemplo n.º 1
0
 def get_build_datetime(self):
     command = "stat --printf=%Y /var/www/miq/vmdb/VERSION"
     return parsetime.fromtimestamp(int(self.run_command(command).output.strip()))
Exemplo n.º 2
0
def build_datetime_getter(client):
    command = "stat --printf=%Y /var/www/miq/vmdb/VERSION"
    x, build_seconds = command_runner(client, command, stream_output=False)
    return parsetime.fromtimestamp(int(build_seconds.strip()))
Exemplo n.º 3
0
 def get_build_datetime(self):
     command = "stat --printf=%Y /var/www/miq/vmdb/VERSION"
     return parsetime.fromtimestamp(int(self.run_command(command).output.strip()))
Exemplo n.º 4
0
def build_datetime_getter(client):
    command = "stat --printf=%Y /var/www/miq/vmdb/VERSION"
    x, build_seconds = command_runner(client, command, stream_output=False)
    return parsetime.fromtimestamp(int(build_seconds.strip()))