We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b4e223 commit 5acaf20Copy full SHA for 5acaf20
1 file changed
linodecli/plugins/image-upload.py
@@ -84,10 +84,6 @@ def call(args, context):
84
# get default region populated
85
context.client.config.update(parsed)
86
87
- if not parsed.region:
88
- print("No region provided. Please set a default region or use --region")
89
- exit(1)
90
-
91
# make sure the file exists and is ready to upload
92
filepath = os.path.expanduser(parsed.file)
93
@@ -100,6 +96,10 @@ def call(args, context):
100
96
print("File {} is too large; compressed size must be less than 5GB".format(filepath))
101
97
exit(2)
102
98
99
+ if not parsed.region:
+ print("No region provided. Please set a default region or use --region")
+ exit(1)
+
103
label = parsed.label or os.path.basename(filepath)
104
105
# generate an upload URL
0 commit comments