Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flag to tell the version of deploy agent #1246

Merged
merged 1 commit into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deploy-agent/deployd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
# 2: puppet applied successfully with changes
PUPPET_SUCCESS_EXIT_CODES = [0, 2]

__version__ = '1.2.45'
__version__ = '1.2.46'
7 changes: 4 additions & 3 deletions deploy-agent/deployd/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
from deployd.common.stats import TimeElapsed, create_sc_timing, create_sc_increment
from deployd.common import utils
from deployd.common.executor import Executor
from deployd.common.types import DeployReport, PingStatus, DeployStatus, OpCode, \
DeployError, DeployErrorSource, DeployStage, AgentStatus
from deployd import IS_PINTEREST, MAIN_LOGGER
from deployd.common.types import DeployReport, PingStatus, DeployStatus, OpCode, DeployStage, AgentStatus
from deployd import __version__, IS_PINTEREST, MAIN_LOGGER

log = logging.getLogger(MAIN_LOGGER)

Expand Down Expand Up @@ -470,6 +469,8 @@ def main():
parser.add_argument('--script-variables', dest='script_variables', default='{}',
help="Optional. In 'serverless' mode, script_variables is needed in "
"json format.")
parser.add_argument('-v', '--version', action='version',
version=__version__, help='Deploy agent version.')

args = parser.parse_args()

Expand Down
Loading