Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
Fix possible null node agent info on list nodes
Browse files Browse the repository at this point in the history
- Resolves #307
  • Loading branch information
alfpark committed Aug 30, 2019
1 parent 88c3cdf commit 3a91511
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions convoy/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -3038,9 +3038,12 @@ def list_nodes(
' * last boot time: {}'.format(node.last_boot_time),
' * scheduling state: {}'.format(node.scheduling_state.value),
' * agent:',
' * version: {}'.format(node.node_agent_info.version),
' * version: {}'.format(
node.node_agent_info.version
if node.node_agent_info is not None else 'pending'),
' * last update time: {}'.format(
node.node_agent_info.last_update_time),
node.node_agent_info.last_update_time
if node.node_agent_info is not None else 'pending'),
]
entry.extend(errors)
entry.extend(st)
Expand Down
2 changes: 1 addition & 1 deletion recipes/RemoteFS-NFS/config/fs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ remote_fs:
resource_group: my-resource-group
location: <Azure region, e.g., eastus>
managed_disks:
premium: true
sku: premium_lrs
disk_size_gb: 1023
disk_names:
- p30-disk0a
Expand Down

0 comments on commit 3a91511

Please sign in to comment.