How to use the sfctl.config.get_cli_version_from_pkg function in sfctl

To help you get started, we’ve selected a few sfctl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / service-fabric-cli / src / sfctl / telemetry.py View on Github external
command_return_code = command_return[0]
    command_return_msg = command_return[1]

    call_success = True

    if command_return_code != 0:
        call_success = False

    operation_id = str(uuid4())

    return {'success': str(call_success),
            'operating_system': platform,
            'python_version': version,
            'operation_id': operation_id,
            'error_msg': command_return_msg,
            'sfctl_version': get_cli_version_from_pkg(),
            'timestamp': str(datetime.utcnow())}