Skip to content

Commit

Permalink
Fix app upgrade arg naming (#50)
Browse files Browse the repository at this point in the history
* Fixing application upgrade argument names

* Updating ReadMe

* PyLint fixes
  • Loading branch information
samedder authored Oct 20, 2017
1 parent bc5fa4d commit c0391b7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
3 changes: 2 additions & 1 deletion src/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ Change Log
-----

- Rename compose deployment creation and upgrade progress commands to accept 'deployment-name' as identifier (#44)
- Fix incorrect parsing error when updating service description load metrics (#47)
- Fix incorrect parsing error when updating service description load metrics (#47)
- Fix incorrect application upgrade argument names (#37)

2.0.0
-----
Expand Down
13 changes: 7 additions & 6 deletions src/sfctl/custom_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,10 @@ def create(client, # pylint: disable=too-many-locals,too-many-arguments
client.create_application(app_desc, timeout)

def upgrade( # pylint: disable=too-many-arguments,too-many-locals,missing-docstring
client, app_id, app_version, parameters, mode="UnmonitoredAuto",
replica_set_check_timeout=None, force_restart=None,
failure_action=None, health_check_wait_duration="0",
client, application_name, application_version, parameters,
mode="UnmonitoredAuto", replica_set_check_timeout=None,
force_restart=None, failure_action=None,
health_check_wait_duration="0",
health_check_stable_duration="PT0H2M0S",
health_check_retry_timeout="PT0H10M0S",
upgrade_timeout="P10675199DT02H48M05.4775807S",
Expand Down Expand Up @@ -292,10 +293,10 @@ def upgrade( # pylint: disable=too-many-arguments,too-many-locals,missing-docst
max_unhealthy_apps, def_shp,
map_shp)

desc = ApplicationUpgradeDescription(app_id, app_version, app_params,
"Rolling", mode,
desc = ApplicationUpgradeDescription(application_name, application_version,
app_params, "Rolling", mode,
replica_set_check_timeout,
force_restart, monitoring_policy,
app_health_policy)

client.start_application_upgrade(app_id, desc, timeout)
client.start_application_upgrade(application_name, desc, timeout)
10 changes: 5 additions & 5 deletions src/sfctl/helps/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@
parameters list. This would results in application using the default
value of the parameters from the application manifest.
parameters:
- name: --app-id
- name: --application-name
type: string
short-summary: The identity of the application.
short-summary: The name of the application
long-summary: "This is typically the full name of the application
without the 'fabric:' URI scheme. Starting from version 6.0,
with the 'fabric:' URI scheme. Starting from version 6.0,
hierarchical names are delimited with the '~' character. For
example, if the application name is 'fabric://myapp/app1', the
example, if the application name is 'fabric:/myapp/app1', the
application identity would be 'myapp~app1' in 6.0+ and 'myapp/app1'
in previous versions."
- name: --app-version
- name: --application-version
type: string
short-summary: Target application version
- name: --parameters
Expand Down

0 comments on commit c0391b7

Please sign in to comment.