def get_build_datetime(self): command = "stat --printf=%Y /var/www/miq/vmdb/VERSION" return parsetime.fromtimestamp(int(self.run_command(command).output.strip()))
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()))