Skip to content

Commit

Permalink
remove unneccesary ()
Browse files Browse the repository at this point in the history
  • Loading branch information
Obliviour committed Nov 22, 2023
1 parent 7bd7831 commit cfa9c16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpk.py
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ def workload_create(args) -> int:
command=command)
tmp = write_temporary_file(yml_string)
namespace_arg = ''
if (args.namespace):
if args.namespace:
namespace_arg = f'--namespace={args.namespace}'
command = f'kubectl apply -f {str(tmp.file.name)} {namespace_arg}'

Expand Down Expand Up @@ -1510,7 +1510,7 @@ def workload_delete(args) -> int:
yml_string = workload_delete_yaml.format(args=args)
tmp = write_temporary_file(yml_string)
namespace_arg = ''
if (args.namespace):
if args.namespace:
namespace_arg = f'--namespace={args.namespace}'
command = f'kubectl delete -f {str(tmp.file.name)} {namespace_arg}'
return_code = run_command_with_updates(command, 'Delete Workload', args)
Expand Down

0 comments on commit cfa9c16

Please sign in to comment.