Exemple #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()))
Exemple #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()))
Exemple #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()))
Exemple #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()))